Commit 8e4270c5 authored by Andreas Öman's avatar Andreas Öman

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