summaryrefslogtreecommitdiff
path: root/libavformat/filmstripenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-09-09 21:35:23 +0200
committerAnton Khirnov <anton@khirnov.net>2012-09-15 18:25:07 +0200
commit3b4bb19e63b41a0a542ba3ef254443b2e76a6a3e (patch)
tree8a4168cce911a68fa1f807881a9a9cd240f663ca /libavformat/filmstripenc.c
parent0c270239c2acec8cf2f3924e2b956e15a41e8d1c (diff)
lavf: flush the output AVIOContext in av_write_trailer().
This is consistent with stdio and is what we want to do in all cases. Fixes a bug in the voc muxer which didn't flush in write_trailer() previously. This is the cause of the change in the test results.
Diffstat (limited to 'libavformat/filmstripenc.c')
-rw-r--r--libavformat/filmstripenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/filmstripenc.c b/libavformat/filmstripenc.c
index 91706fb993..d000c4f9f5 100644
--- a/libavformat/filmstripenc.c
+++ b/libavformat/filmstripenc.c
@@ -67,7 +67,7 @@ static int write_trailer(AVFormatContext *s)
avio_wb16(pb, 1/av_q2d(st->codec->time_base));
for (i = 0; i < 16; i++)
avio_w8(pb, 0x00); // reserved
- avio_flush(pb);
+
return 0;
}