From e128182afd7ea32194dde837d024c5f0f8d8f6f3 Mon Sep 17 00:00:00 2001 From: sebist Date: Tue, 17 Apr 2012 09:29:27 +0200 Subject: [PATCH] CrystalHD: fix pStride value. Signed-off-by: sebist Reviewed-by: Philip Langdale Signed-off-by: Michael Niedermayer --- libavcodec/crystalhd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c index 5fcb07a633..2bae8f4881 100644 --- a/libavcodec/crystalhd.c +++ b/libavcodec/crystalhd.c @@ -656,8 +656,7 @@ static inline CopyRet copy_frame(AVCodecContext *avctx, pStride = 720; else if (width <= 1280) pStride = 1280; - else if (width <= 1080) - pStride = 1080; + else pStride = 1920; sStride = av_image_get_linesize(avctx->pix_fmt, pStride, 0); } else { sStride = bwidth;