Browse Source

libavformat: Allow calling av_write_trailer with a NULL AVIOContext

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n2.6
Martin Storsjö 10 years ago
parent
commit
4895aa65c6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mux.c

+ 1
- 1
libavformat/mux.c View File

@@ -624,7 +624,7 @@ int av_write_trailer(AVFormatContext *s)
if (s->oformat->write_trailer)
ret = s->oformat->write_trailer(s);

if (!(s->oformat->flags & AVFMT_NOFILE))
if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb)
avio_flush(s->pb);

fail:


Loading…
Cancel
Save