mirror of https://git.ffmpeg.org/ffmpeg.git
fix temporal offet of ipbb sequences, simplification welcome
Originally committed as revision 16940 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b17f1a0764
commit
a4397fa911
|
@ -895,8 +895,12 @@ static int mxf_write_index_table_segment(AVFormatContext *s)
|
|||
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))
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue