Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2012-01-30 19:54:47 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2012-01-30 19:54:47 +0400
commit185dccb0360ddd1ad0509f307b6a011ac30685ae (patch)
treee8d2a7a1c53916e6b85cba0648270fc785debfb0 /decoder/LAVVideo/pixconv
parenta9325ca07c3f02bae0f96c3e72fcd7a4d782408d (diff)
Fix typo in YUV -> YV12/16/24 code
Diffstat (limited to 'decoder/LAVVideo/pixconv')
-rw-r--r--decoder/LAVVideo/pixconv/yuv2yuv_unscaled.cpp6
1 files changed, 3 insertions, 3 deletions
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