From: Andreas Ă–man Date: Mon, 7 Jan 2008 20:42:45 +0000 (+0000) Subject: Dont crash if resampling is requested but no audio packets are ever processed. X-Git-Tag: v0.5~6524 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8e4270c551533598a8c9861f7c75eae04d0e38ac;p=coroid%2Fffmpeg_saccubus.git 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 --- diff --git a/ffmpeg.c b/ffmpeg.c index 6c22053c2..12db8a8c9 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -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); }