diff options
author | Martin Storsjö <martin@martin.st> | 2014-12-19 15:40:02 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-12-19 23:12:58 +0200 |
commit | 4895aa65c6ddec2e33ec3c023f221b1bafcbaf9f (patch) | |
tree | 74547744278ac694038b889a09839c329843be19 /libavformat | |
parent | cee4490b521fd0d02476d46aa2598af24fb8d686 (diff) | |
download | ffmpeg-4895aa65c6ddec2e33ec3c023f221b1bafcbaf9f.tar.gz |
libavformat: Allow calling av_write_trailer with a NULL AVIOContext
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c index 9aee224d1f..2a28fd668a 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -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: |