summaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-05 12:20:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-05 12:20:26 +0200
commit4abd5a431823e4f816c2295d9086b725df1f0358 (patch)
tree9959c95f53d5b5decc0040349c0469fb87cfea79 /ffmpeg.c
parent2280b539c5050364d68e2cdbef2a0d3a7047544f (diff)
parent274e134e49b1c92db0f0b8cb2ae7554fb7b9184c (diff)
downloadffmpeg-streaming-4abd5a431823e4f816c2295d9086b725df1f0358.zip
ffmpeg-streaming-4abd5a431823e4f816c2295d9086b725df1f0358.tar.gz
Merge commit '274e134e49b1c92db0f0b8cb2ae7554fb7b9184c'
* commit '274e134e49b1c92db0f0b8cb2ae7554fb7b9184c': avconv: check that the output format context exists before accessing it Conflicts: ffmpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index c9ac577..e199a10 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -454,7 +454,7 @@ static void exit_program(void)
/* close files */
for (i = 0; i < nb_output_files; i++) {
AVFormatContext *s = output_files[i]->ctx;
- if (s && !(s->oformat->flags & AVFMT_NOFILE) && s->pb)
+ if (s && s->oformat && !(s->oformat->flags & AVFMT_NOFILE) && s->pb)
avio_close(s->pb);
avformat_free_context(s);
av_dict_free(&output_files[i]->opts);
OpenPOWER on IntegriCloud