Commit 5703ba93 authored by andoma's avatar andoma

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



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11449 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 16a5e58e
......@@ -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