Commit 4e585f63 authored by Michael Niedermayer's avatar Michael Niedermayer

sws: use planarRgbToRgbWrapper only for 8bit per component

The function doesnt support >8bit currently
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5cb0782b
......@@ -965,7 +965,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
f == AV_PIX_FMT_BGR32_1 ||\
f == AV_PIX_FMT_BGR24)
if (isAnyRGB(srcFormat) && isPlanar(srcFormat) && isByteRGB(dstFormat))
if (srcFormat == AV_PIX_FMT_GBR24P && isPlanar(srcFormat) && isByteRGB(dstFormat))
c->swScale = planarRgbToRgbWrapper;
/* bswap 16 bits per pixel/component packed formats */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment