Revision 8a4ea200 libavformat/dv.c

View differences:

libavformat/dv.c
336 336
       ppcm[i] = c->audio_buf[i];
337 337
    }
338 338
    dv_extract_audio(buf, ppcm, c->sys);
339
    c->abytes += size;
340 339

  
341 340
    /* We work with 720p frames split in half, thus even frames have
342 341
     * channels 0,1 and odd 2,3. */
343 342
    if (c->sys->height == 720) {
344
        if (buf[1] & 0x0C)
343
        if (buf[1] & 0x0C) {
345 344
            c->audio_pkt[2].size = c->audio_pkt[3].size = 0;
346
        else
345
        } else {
347 346
            c->audio_pkt[0].size = c->audio_pkt[1].size = 0;
347
            c->abytes += size;
348
        }
349
    } else {
350
        c->abytes += size;
348 351
    }
349 352

  
350 353
    /* Now it's time to return video packet */

Also available in: Unified diff