From 4e585f63257bfacb4a9d578e54ba2285033d959f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 26 Jan 2013 19:43:06 +0100 Subject: [PATCH] sws: use planarRgbToRgbWrapper only for 8bit per component The function doesnt support >8bit currently Signed-off-by: Michael Niedermayer --- libswscale/swscale_unscaled.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */