summaryrefslogtreecommitdiffstats
path: root/libavformat/swfenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/swfenc.c')
-rw-r--r--libavformat/swfenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index 052d720..f5328d0 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -492,7 +492,7 @@ static int swf_write_trailer(AVFormatContext *s)
avio_flush(s->pb);
/* patch file size and number of frames if not streamed */
- if (!url_is_streamed(s->pb) && video_enc) {
+ if (s->pb->seekable && video_enc) {
file_size = avio_tell(pb);
avio_seek(pb, 4, SEEK_SET);
avio_wl32(pb, file_size);
OpenPOWER on IntegriCloud