Revision 75f2c209 libavformat/dv.c

View differences:

libavformat/dv.c
116 116
    quant = as_pack[4] & 0x07; /* 0 - 16bit linear, 1 - 12bit nonlinear */
117 117

  
118 118
    if (quant > 1)
119
        return -1; /* Unsupported quantization */
119
        return -1; /* unsupported quantization */
120 120

  
121 121
    size = (sys->audio_min_samples[freq] + smpls) * 4; /* 2ch, 2bytes */
122 122
    half_ch = sys->difseg_size/2;
123 123

  
124
    /* We work with 720p frames split in half, thus even frames have channels 0,1 and odd 2,3 */
124
    /* We work with 720p frames split in half, thus even frames have
125
     * channels 0,1 and odd 2,3 */
125 126
    ipcm = (sys->height == 720 && !(frame[1]&0x0C))?2:0;
126 127
    pcm = ppcm[ipcm++];
127 128

  
......
335 336
    dv_extract_audio(buf, ppcm, c->sys);
336 337
    c->abytes += size;
337 338

  
338
    /* We work with 720p frames split in half, thus even frames have channels 0,1 and odd 2,3 */
339
    /* We work with 720p frames split in half, thus even frames have
340
     * channels 0,1 and odd 2,3. */
339 341
    if (c->sys->height == 720) {
340 342
        if (buf[1]&0x0C)
341 343
            c->audio_pkt[2].size = c->audio_pkt[3].size = 0;

Also available in: Unified diff