aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2003-01-20 22:41:48 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-01-20 22:41:48 +0000
commit566986ee1913ee5567b7dce31229c23f22162120 (patch)
tree7c4956513a49c826f8527c287eaa710032fd5879
parent69572401adec1b8eb67f91c217e0052717fe66f1 (diff)
downloadffmpeg-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.c6
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 */