diff options
Diffstat (limited to 'decoder/LAVVideo/pixconv/yuv444_ayuv.cpp')
-rw-r--r-- | decoder/LAVVideo/pixconv/yuv444_ayuv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVVideo/pixconv/yuv444_ayuv.cpp b/decoder/LAVVideo/pixconv/yuv444_ayuv.cpp index e9e3d1f3..aaacac9d 100644 --- a/decoder/LAVVideo/pixconv/yuv444_ayuv.cpp +++ b/decoder/LAVVideo/pixconv/yuv444_ayuv.cpp @@ -97,7 +97,7 @@ DECLARE_CONV_FUNC_IMPL(convert_yuv444_ayuv_dither_le) const int outStride = dstStride << 2; // Number of bits to shift to reach 8 - int shift = (inputFormat == PIX_FMT_YUV444P10LE ? 2 : (inputFormat == PIX_FMT_YUV444P9LE) ? 1 : 8); + int shift = bpp - 8; int line, i; |