diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-05 12:20:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-05 12:20:26 +0200 |
commit | 4abd5a431823e4f816c2295d9086b725df1f0358 (patch) | |
tree | 9959c95f53d5b5decc0040349c0469fb87cfea79 | |
parent | 2280b539c5050364d68e2cdbef2a0d3a7047544f (diff) | |
parent | 274e134e49b1c92db0f0b8cb2ae7554fb7b9184c (diff) | |
download | ffmpeg-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>
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |