diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-26 19:43:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-26 20:40:44 +0100 |
commit | 4e585f63257bfacb4a9d578e54ba2285033d959f (patch) | |
tree | 80802c1db69aa16e190e0467d8652284f882c3e3 /libswscale/swscale_unscaled.c | |
parent | 5cb0782b952f5e04fd686d31ed5754e235cc2742 (diff) | |
download | ffmpeg-4e585f63257bfacb4a9d578e54ba2285033d959f.tar.gz |
sws: use planarRgbToRgbWrapper only for 8bit per component
The function doesnt support >8bit currently
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale_unscaled.c')
-rw-r--r-- | libswscale/swscale_unscaled.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c index 01396c2217..162ba24811 100644 --- a/libswscale/swscale_unscaled.c +++ b/libswscale/swscale_unscaled.c @@ -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 */ |