Commit 1f1c1008 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '9ad1e0c1'

* commit '9ad1e0c1':
  mux: Make sure that the data is actually written
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 88e7ea3e 9ad1e0c1
......@@ -660,8 +660,13 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
ret = s->oformat->write_packet(s, pkt);
}
if (s->flush_packets && s->pb && ret >= 0 && s->flags & AVFMT_FLAG_FLUSH_PACKETS)
avio_flush(s->pb);
if (s->pb && ret >= 0) {
if (s->flush_packets && s->flags & AVFMT_FLAG_FLUSH_PACKETS)
avio_flush(s->pb);
if (s->pb->error < 0)
ret = s->pb->error;
}
if (did_split)
av_packet_merge_side_data(pkt);
......
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