Browse Source

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>
tags/n1.0
Reimar Döffinger 13 years ago
parent
commit
07d2d06395
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavformat/utils.c

+ 0
- 3
libavformat/utils.c View File

@@ -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);


Loading…
Cancel
Save