Commit 07d2d063 authored by Reimar Döffinger's avatar Reimar Döffinger

Remove code that duplicates existing code a few lines down.

This also fixes a potential crash since s->pb can be NULL.
Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent 5c95a934
......@@ -3787,9 +3787,6 @@ int av_write_trailer(AVFormatContext *s)
if (s->oformat->write_trailer)
ret = s->oformat->write_trailer(s);
if (!(s->oformat->flags & AVFMT_NOFILE))
avio_flush(s->pb);
fail:
if (s->pb)
avio_flush(s->pb);
......
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