Commit a286940d authored by Michael Niedermayer's avatar Michael Niedermayer

mux: also call avio_flush() when flushing the muxer

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ad6a50c0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment