Commit 566986ee authored by Max Krasnyansky's avatar Max Krasnyansky Committed by Michael Niedermayer

img_convert() (YUV to YUV) patch by (Max Krasnyansky <maxk at qualcomm dot com>)

Originally committed as revision 1484 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 69572401
......@@ -1190,10 +1190,12 @@ int img_convert(AVPicture *dst, int dst_pix_fmt,
img_copy(dst->data[0], dst->linesize[0],
src->data[0], src->linesize[0],
dst_width, dst_height);
for(i = 1;i <= 2; i++)
resize_func(dst->data[1], dst->linesize[1],
src->data[1], src->linesize[1],
resize_func(dst->data[i], dst->linesize[i],
src->data[i], src->linesize[i],
w, h);
return 0;
}
/* try to use an intermediate format */
......
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