diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2003-01-20 22:41:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-01-20 22:41:48 +0000 |
commit | 566986ee1913ee5567b7dce31229c23f22162120 (patch) | |
tree | 7c4956513a49c826f8527c287eaa710032fd5879 | |
parent | 69572401adec1b8eb67f91c217e0052717fe66f1 (diff) | |
download | ffmpeg-566986ee1913ee5567b7dce31229c23f22162120.tar.gz |
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
-rw-r--r-- | libavcodec/imgconvert.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index c02afc76c8..82e520ef9d 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -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 */ |