always write footer partition according to specs
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 31 Aug 2008 03:01:07 +0000 (03:01 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 31 Aug 2008 03:01:07 +0000 (03:01 +0000)
Originally committed as revision 15100 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mxfenc.c

index 8eb8547..2ea462d 100644 (file)
@@ -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;
 }