diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-31 03:01:07 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-31 03:01:07 +0000 |
commit | 7d5fdf900b2078d71ebeb0470fbe012c1486e1a2 (patch) | |
tree | 954cf5091df66ce0bc21d6a443325910183c3943 | |
parent | 9cf8ebe38a7354e4a6a91f7461c51f6b3a5aa42a (diff) | |
download | ffmpeg-7d5fdf900b2078d71ebeb0470fbe012c1486e1a2.tar.gz |
always write footer partition according to specs
Originally committed as revision 15100 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mxfenc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 8eb8547f36..2ea462d23d 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -857,11 +857,10 @@ static int mxf_write_footer(AVFormatContext *s) ByteIOContext *pb = s->pb; int64_t byte_position= url_ftell(pb); - if (!url_is_streamed(s->pb)) { - mxf_write_partition(s, byte_position, 0, footer_partition_key); - put_flush_packet(pb); + mxf_write_partition(s, byte_position, 0, footer_partition_key); + put_flush_packet(pb); + if (!url_is_streamed(s->pb)) mxf_update_header_partition(s, byte_position); - } mxf_free(s); return 0; } |