You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
swscale: Fix packed rgb check for planarRgbToRgbWrapper.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -694,7 +694,15 @@ void ff_get_unscaled_swscale(SwsContext *c)
|
|||||||
&& (!needsDither || (c->flags&(SWS_FAST_BILINEAR|SWS_POINT))))
|
&& (!needsDither || (c->flags&(SWS_FAST_BILINEAR|SWS_POINT))))
|
||||||
c->swScale= rgbToRgbWrapper;
|
c->swScale= rgbToRgbWrapper;
|
||||||
|
|
||||||
if (isAnyRGB(srcFormat) && isPlanar(srcFormat) && isAnyRGB(dstFormat) && !isPlanar(dstFormat))
|
#define isByteRGB(f) (\
|
||||||
|
f == PIX_FMT_RGB32 ||\
|
||||||
|
f == PIX_FMT_RGB32_1 ||\
|
||||||
|
f == PIX_FMT_RGB24 ||\
|
||||||
|
f == PIX_FMT_BGR32 ||\
|
||||||
|
f == PIX_FMT_BGR32_1 ||\
|
||||||
|
f == PIX_FMT_BGR24)
|
||||||
|
|
||||||
|
if (isAnyRGB(srcFormat) && isPlanar(srcFormat) && isByteRGB(dstFormat))
|
||||||
c->swScale= planarRgbToRgbWrapper;
|
c->swScale= planarRgbToRgbWrapper;
|
||||||
|
|
||||||
if ((usePal(srcFormat) && (
|
if ((usePal(srcFormat) && (
|
||||||
|
Reference in New Issue
Block a user