[FFmpeg-cvslog] r16940 - trunk/libavformat/mxfenc.c
bcoudurier
subversion
Mon Feb 2 11:41:43 CET 2009
Author: bcoudurier
Date: Mon Feb 2 11:41:43 2009
New Revision: 16940
Log:
fix temporal offet of ipbb sequences, simplification welcome
Modified:
trunk/libavformat/mxfenc.c
Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c Mon Feb 2 11:31:51 2009 (r16939)
+++ trunk/libavformat/mxfenc.c Mon Feb 2 11:41:43 2009 (r16940)
@@ -894,9 +894,13 @@ static int mxf_write_index_table_segment
for (j = i+1; j < mxf->edit_units_count; j++) {
temporal_offset++;
if (mxf->index_entries[j].flags & 0x10) { // backward prediction
- // next is not b, so is reordered
- if (!(mxf->index_entries[i+1].flags & 0x10))
- temporal_offset = -temporal_offset;
+ // next is not b, so is reordered
+ if (!(mxf->index_entries[i+1].flags & 0x10)) {
+ if ((mxf->index_entries[i].flags & 0x11) == 0) // i frame
+ temporal_offset = 0;
+ else
+ temporal_offset = -temporal_offset;
+ }
break;
}
}
More information about the ffmpeg-cvslog
mailing list