projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c95a93
)
Remove code that duplicates existing code a few lines down.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 17 Sep 2012 19:16:32 +0000
(21:16 +0200)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 17 Sep 2012 19:17:43 +0000
(21:17 +0200)
This also fixes a potential crash since s->pb can be NULL.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
7152401
..
f6a20ca
100644
(file)
--- 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);