]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mxfenc.c
Merge commit 'f0a41afd8a37ebe972436fabfa3d289178bbd83b'
[ffmpeg] / libavformat / mxfenc.c
index 8cf5d9325714ae43cb2c30f41840c9be68896c6b..c6532a34276f845cc1f8f43f63e47840203b168c 100644 (file)
@@ -1784,7 +1784,7 @@ static int mxf_write_footer(AVFormatContext *s)
     mxf_write_klv_fill(s);
     mxf_write_random_index_pack(s);
 
-    if (!url_is_streamed(s->pb)) {
+    if (s->pb->seekable) {
         avio_seek(pb, 0, SEEK_SET);
         if (mxf->edit_unit_byte_count) {
             mxf_write_partition(s, 1, 2, header_closed_partition_key, 1);