mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 04:30:02 +00:00
mux: also call avio_flush() when flushing the muxer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ad6a50c0ed
commit
a286940da1
@ -508,6 +508,8 @@ int av_write_frame(AVFormatContext *s, AVPacket *pkt)
|
||||
if (!pkt) {
|
||||
if (s->oformat->flags & AVFMT_ALLOW_FLUSH) {
|
||||
ret = s->oformat->write_packet(s, NULL);
|
||||
if (s->flush_packets && s->pb && s->pb->error >= 0)
|
||||
avio_flush(s->pb);
|
||||
if (ret >= 0 && s->pb && s->pb->error < 0)
|
||||
ret = s->pb->error;
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user