diff options
author | Luca Abeni <lucabe72@email.it> | 2006-10-30 10:15:37 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2006-10-30 10:15:37 +0000 |
commit | 9c5d7c568b882f78f1b5c84a3b8e7c44a527054d (patch) | |
tree | d4e3dfdd9edf349697e14a8f7d251aa5f8499f60 | |
parent | 498c544ad20be3e5ebf9c481cc239958399fba12 (diff) | |
download | ffmpeg-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.c | 2 |
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]; |