mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
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>
This commit is contained in:
@ -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++) {
|
||||
|
Reference in New Issue
Block a user