diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-09-17 21:16:32 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-09-17 21:17:43 +0200 |
commit | 07d2d063954251bdefe34d7d1f8de751eec606be (patch) | |
tree | 4c7e0be0a8fda60bfc7164949fa7d974b9e1cd64 | |
parent | 5c95a93411c46a2d89b86178ec9abbea18f3eb57 (diff) | |
download | ffmpeg-07d2d063954251bdefe34d7d1f8de751eec606be.tar.gz |
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: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 7152401de8..f6a20caa1b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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); |