diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 1ad488c57f..a926bade05 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2344,10 +2344,10 @@ SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int d c->swScale= rgb2rgbWrapper; if ((usePal(srcFormat) && ( - dstFormat == PIX_FMT_RGB32 || + dstFormat == PIX_FMT_RGB32 || dstFormat == PIX_FMT_RGB32_1 || - dstFormat == PIX_FMT_RGB24 || - dstFormat == PIX_FMT_BGR32 || + dstFormat == PIX_FMT_RGB24 || + dstFormat == PIX_FMT_BGR32 || dstFormat == PIX_FMT_BGR32_1 || dstFormat == PIX_FMT_BGR24))) c->swScale= pal2rgbWrapper;