Skip to content

Commit

Permalink
sws: use planarRgbToRgbWrapper only for 8bit per component
Browse files Browse the repository at this point in the history
The function doesnt support >8bit currently

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Jan 26, 2013
1 parent 5cb0782 commit 4e585f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libswscale/swscale_unscaled.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 4e585f6

Please sign in to comment.