From f2e34be14bf2497acb189cfcd82d8e2891a5fdf5 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 11 Oct 2009 07:05:26 +0000 Subject: [PATCH] 100l in avpicture_layout: width of chroma planes depends on format depth, too. Fixes issue 1465 git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20202 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/imgconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 4698fcf82e..9826a6a358 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -897,7 +897,7 @@ int avpicture_layout(const AVPicture* src, enum PixelFormat pix_fmt, int width, for (i=0; i> pf->x_chroma_shift; + w = ((width >> pf->x_chroma_shift) * pf->depth + 7) / 8; h = height >> pf->y_chroma_shift; } else if (i == 3) { w = ow; -- 2.11.4.GIT