diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-04-10 21:36:30 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-04-12 00:13:53 +0200 |
commit | 277f20c3c877a74aca9d480480024a6d66c9fbc4 (patch) | |
tree | 2e23a2db444f077ecd6cbc8a50890a1a72988e0f /libavformat/utils.c | |
parent | 4f6df20a008e52e767550e1ea94280a15c1408b6 (diff) | |
download | ffmpeg-277f20c3c877a74aca9d480480024a6d66c9fbc4.tar.gz |
lavf: always call avio_flush in av_write_trailer.
Otherwise for muxers like e.g. latmenc that never call
avio_flush (and do not have a write_trailer function)
a part of the data will always be missing.
Also update references for the voc muxer, which was also
buggy before and did not write out all data.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index ebf34deff8..dd3108f70c 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3567,6 +3567,8 @@ int av_write_trailer(AVFormatContext *s) if(s->oformat->write_trailer) ret = s->oformat->write_trailer(s); fail: + if (s->pb) + avio_flush(s->pb); if(ret == 0) ret = s->pb ? s->pb->error : 0; for(i=0;i<s->nb_streams;i++) { |