diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-07-04 07:56:58 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-07-04 07:56:58 +0000 |
commit | df1550f0815ff3513c82d62307b466a5afdc6e5c (patch) | |
tree | 01c9d8e8c6927e1920ae022e4bd11a78abe9b6d6 /libavformat | |
parent | 76b092e2072d0b9e1c91564e0723a871eb29423b (diff) | |
download | ffmpeg-df1550f0815ff3513c82d62307b466a5afdc6e5c.tar.gz |
set index duration to 0 for cbr, specifying whole container coverage
Originally committed as revision 19338 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mxfenc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 928f3e1531..e71593e404 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1072,7 +1072,10 @@ static void mxf_write_index_table_segment(AVFormatContext *s) // index duration mxf_write_local_tag(pb, 8, 0x3F0D); - put_be64(pb, mxf->edit_units_count); + if (mxf->edit_unit_byte_count) + put_be64(pb, 0); // index table covers whole container + else + put_be64(pb, mxf->edit_units_count); // edit unit byte count mxf_write_local_tag(pb, 4, 0x3F05); |