diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-12-15 14:54:18 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-12-15 14:54:18 +0400 |
commit | d8fdcbb92dc03b83233290da7f57ebeba1ab0afb (patch) | |
tree | da48367229faf0c27d4d0b9544c336d41a739d2c /decoder/LAVVideo/pixconv/convert_generic.cpp | |
parent | f8893b4e0ed2e28589b759df9d576d434bd0049a (diff) |
Fix v210 with an odd image width.
Diffstat (limited to 'decoder/LAVVideo/pixconv/convert_generic.cpp')
-rw-r--r-- | decoder/LAVVideo/pixconv/convert_generic.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/decoder/LAVVideo/pixconv/convert_generic.cpp b/decoder/LAVVideo/pixconv/convert_generic.cpp index 2f5e4d8f..234b947a 100644 --- a/decoder/LAVVideo/pixconv/convert_generic.cpp +++ b/decoder/LAVVideo/pixconv/convert_generic.cpp @@ -584,6 +584,10 @@ HRESULT CLAVPixFmtConverter::ConvertTov210(const uint8_t* const src[4], const in // Calculate v210 stride int outStride = (((dstStride[0] >> 2) + 47) / 48) * 128; + // Align width to an even number for processing + // This may read into the source stride, but otherwise the algorithm won't work. + width = FFALIGN(width, 2); + BYTE *pdst = dst[0]; int32_t *p = (int32_t *)pdst; int w; |