diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2009-06-17 18:40:19 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2009-06-17 18:40:19 +0000 |
commit | fa8c408b26fb5aa52d1e120d821710fe5bdd620e (patch) | |
tree | 1b8e0030d82a314b4d0475994d4ba8d9188dd98b | |
parent | 61ac77f1af3767241a4657da95da753dafb1a657 (diff) | |
download | ffmpeg-fa8c408b26fb5aa52d1e120d821710fe5bdd620e.tar.gz |
Do not call rgb2rgbWrapper() for rgb48*, there is no special converter
yet for those formats
Originally committed as revision 29371 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r-- | libswscale/swscale.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 91f788d394..5030a6b623 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2732,6 +2732,8 @@ SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int d && srcFormat != PIX_FMT_MONOWHITE && dstFormat != PIX_FMT_MONOWHITE && dstFormat != PIX_FMT_RGB32_1 && dstFormat != PIX_FMT_BGR32_1 + && srcFormat != PIX_FMT_RGB48LE && dstFormat != PIX_FMT_RGB48LE + && srcFormat != PIX_FMT_RGB48BE && dstFormat != PIX_FMT_RGB48BE && (!needsDither || (c->flags&(SWS_FAST_BILINEAR|SWS_POINT)))) c->swScale= rgb2rgbWrapper; |