Browse Source

swscale: use isByteRGB() to simplify check for palToRgbWrapper.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 13 years ago
parent
commit
b13ba5cb9a
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      libswscale/swscale_unscaled.c

+ 1
- 7
libswscale/swscale_unscaled.c View File

@@ -705,13 +705,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
if (isAnyRGB(srcFormat) && isPlanar(srcFormat) && isByteRGB(dstFormat))
c->swScale= planarRgbToRgbWrapper;

if ((usePal(srcFormat) && (
dstFormat == PIX_FMT_RGB32 ||
dstFormat == PIX_FMT_RGB32_1 ||
dstFormat == PIX_FMT_RGB24 ||
dstFormat == PIX_FMT_BGR32 ||
dstFormat == PIX_FMT_BGR32_1 ||
dstFormat == PIX_FMT_BGR24)))
if (usePal(srcFormat) && isByteRGB(dstFormat))
c->swScale= palToRgbWrapper;

if (srcFormat == PIX_FMT_YUV422P) {


Loading…
Cancel
Save