Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-26 22:43:06 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-01-26 23:40:44 +0400
commit4e585f63257bfacb4a9d578e54ba2285033d959f (patch)
tree80802c1db69aa16e190e0467d8652284f882c3e3 /libswscale/swscale_unscaled.c
parent5cb0782b952f5e04fd686d31ed5754e235cc2742 (diff)
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.c2
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 */