Commit 8a774d3d authored by Baptiste Coudurier's avatar Baptiste Coudurier
Browse files

Do not allocate unused swscale context when libavfilter is compiled in

Originally committed as revision 26317 to svn://
parent e83c716e
......@@ -2207,6 +2207,7 @@ static int transcode(AVFormatContext **output_files,
codec->height != icodec->height ||
(codec->pix_fmt != icodec->pix_fmt));
if (ost->video_resample) {
if(avpicture_alloc((AVPicture*)&ost->pict_tmp, codec->pix_fmt,
codec->width, codec->height)) {
......@@ -2227,7 +2228,6 @@ static int transcode(AVFormatContext **output_files,
ost->original_height = icodec->height;
ost->original_width = icodec->width;
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