[FFmpeg-cvslog] r19228 - trunk/libavformat/dv.c
bcoudurier
subversion
Fri Jun 19 23:36:21 CEST 2009
Author: bcoudurier
Date: Fri Jun 19 23:36:21 2009
New Revision: 19228
Log:
fix dvcprohd 720p channels 3 and 4 audio timestamps, patch by Brian Brice, bbrice at gmail dot com
Modified:
trunk/libavformat/dv.c
Modified: trunk/libavformat/dv.c
==============================================================================
--- trunk/libavformat/dv.c Fri Jun 19 19:21:13 2009 (r19227)
+++ trunk/libavformat/dv.c Fri Jun 19 23:36:21 2009 (r19228)
@@ -336,15 +336,18 @@ int dv_produce_packet(DVDemuxContext *c,
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 */
More information about the ffmpeg-cvslog
mailing list