From 990a1eb471f049f04eee31c72925c80e5a28d845 Mon Sep 17 00:00:00 2001 From: vitor Date: Wed, 17 Jun 2009 18:40:19 +0000 Subject: Do not call rgb2rgbWrapper() for rgb48*, there is no special converter yet for those formats git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29371 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3