Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-09-17 23:16:32 +0400
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-09-17 23:17:43 +0400
commit07d2d063954251bdefe34d7d1f8de751eec606be (patch)
tree4c7e0be0a8fda60bfc7164949fa7d974b9e1cd64 /libavformat
parent5c95a93411c46a2d89b86178ec9abbea18f3eb57 (diff)
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c3
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);