Mercurial > libavformat.hg
changeset 5047:0a4137d6a7a5 libavformat
fix dvcprohd 720p channels 3 and 4 audio timestamps, patch by Brian Brice, bbrice at gmail dot com
author | bcoudurier |
---|---|
date | Fri, 19 Jun 2009 21:36:21 +0000 |
parents | b4b0df2c408b |
children | d44e963aaf1c |
files | dv.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dv.c Fri Jun 19 14:36:47 2009 +0000 +++ b/dv.c Fri Jun 19 21:36:21 2009 +0000 @@ -336,15 +336,18 @@ ppcm[i] = c->audio_buf[i]; } dv_extract_audio(buf, ppcm, c->sys); - c->abytes += size; /* We work with 720p frames split in half, thus even frames have * channels 0,1 and odd 2,3. */ if (c->sys->height == 720) { - if (buf[1] & 0x0C) + if (buf[1] & 0x0C) { c->audio_pkt[2].size = c->audio_pkt[3].size = 0; - else + } else { c->audio_pkt[0].size = c->audio_pkt[1].size = 0; + c->abytes += size; + } + } else { + c->abytes += size; } /* Now it's time to return video packet */