Commit 4abd5a43 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '274e134e'

* commit '274e134e':
  avconv: check that the output format context exists before accessing it

Conflicts:
	ffmpeg.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 2280b539 274e134e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment