Skip to content
Snippets Groups Projects
Commit 8e4270c5 authored by Andreas Öman's avatar Andreas Öman
Browse files

Dont crash if resampling is requested but no audio packets are ever processed.

Originally committed as revision 11449 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 03d83abc
No related branches found
No related tags found
No related merge requests found
......@@ -2057,7 +2057,7 @@ static int av_encode(AVFormatContext **output_files,
av_free(ost->pict_tmp.data[0]);
if (ost->video_resample)
sws_freeContext(ost->img_resample_ctx);
if (ost->audio_resample)
if (ost->resample)
audio_resample_close(ost->resample);
av_free(ost);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment