Commit 9c5d7c56 authored by Luca Abeni's avatar Luca Abeni

AVPicture has 4 planes, not 3

Originally committed as revision 6838 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 498c544a
...@@ -727,7 +727,7 @@ int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[], ...@@ -727,7 +727,7 @@ int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
uint8_t *buf1 = NULL, *buf2 = NULL; uint8_t *buf1 = NULL, *buf2 = NULL;
enum PixelFormat current_pix_fmt; 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.data[i] = src[i];
src_pict.linesize[i] = srcStride[i]; src_pict.linesize[i] = srcStride[i];
dst_pict.data[i] = dst[i]; dst_pict.data[i] = dst[i];
......
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