aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2006-10-30 10:15:37 +0000
committerLuca Abeni <lucabe72@email.it>2006-10-30 10:15:37 +0000
commit9c5d7c568b882f78f1b5c84a3b8e7c44a527054d (patch)
treed4e3dfdd9edf349697e14a8f7d251aa5f8499f60
parent498c544ad20be3e5ebf9c481cc239958399fba12 (diff)
downloadffmpeg-9c5d7c568b882f78f1b5c84a3b8e7c44a527054d.tar.gz
AVPicture has 4 planes, not 3
Originally committed as revision 6838 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/imgresample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imgresample.c b/libavcodec/imgresample.c
index 84336ef590..82a1d958b8 100644
--- a/libavcodec/imgresample.c
+++ b/libavcodec/imgresample.c
@@ -727,7 +727,7 @@ int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
uint8_t *buf1 = NULL, *buf2 = NULL;
enum PixelFormat current_pix_fmt;
- for (i = 0; i < 3; i++) {
+ for (i = 0; i < 4; i++) {
src_pict.data[i] = src[i];
src_pict.linesize[i] = srcStride[i];
dst_pict.data[i] = dst[i];