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
This commit is contained in:
Andreas Öman 2008-01-07 20:42:45 +00:00
parent 03d83abcc6
commit 8e4270c551
1 changed files with 1 additions and 1 deletions

View File

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