From 185dccb0360ddd1ad0509f307b6a011ac30685ae Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Mon, 30 Jan 2012 16:54:47 +0100 Subject: Fix typo in YUV -> YV12/16/24 code --- decoder/LAVVideo/pixconv/yuv2yuv_unscaled.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'decoder/LAVVideo/pixconv') diff --git a/decoder/LAVVideo/pixconv/yuv2yuv_unscaled.cpp b/decoder/LAVVideo/pixconv/yuv2yuv_unscaled.cpp index 9e1a2874..dc45ca6c 100644 --- a/decoder/LAVVideo/pixconv/yuv2yuv_unscaled.cpp +++ b/decoder/LAVVideo/pixconv/yuv2yuv_unscaled.cpp @@ -192,10 +192,10 @@ DECLARE_CONV_FUNC_IMPL(convert_yuv_yv) int chromaHeight = height; if (inputFormat == LAVPixFmt_YUV420) - chromaHeight = chromaHeight << 1; + chromaHeight = chromaHeight >> 1; if (inputFormat == LAVPixFmt_YUV420 || inputFormat == LAVPixFmt_YUV422) { - chromaWidth = (chromaWidth + 1) << 1; - outChromaStride = outChromaStride << 1; + chromaWidth = (chromaWidth + 1) >> 1; + outChromaStride = outChromaStride >> 1; } // Copy planes -- cgit v1.2.3