CrystalHD: fix pStride value.
authorsebist <sebok.istvan@gmail.com>
Tue, 17 Apr 2012 07:29:27 +0000 (09:29 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Apr 2012 17:34:51 +0000 (19:34 +0200)
Signed-off-by: sebist <sebok.istvan@gmail.com>
Reviewed-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/crystalhd.c

index 5fcb07a..2bae8f4 100644 (file)
@@ -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;