sws: disable yuv2rgb warning for planar rgb.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 26 Jan 2013 22:05:26 +0000 (23:05 +0100)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Sat, 9 Feb 2013 19:32:50 +0000 (14:32 -0500)
planar rgb formats do not use the table

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libswscale/yuv2rgb.c

index 1dbd0d8..73640da 100644 (file)
@@ -882,7 +882,8 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4],
         break;
     default:
         c->yuvTable = NULL;
-        av_log(c, AV_LOG_ERROR, "%ibpp not supported by yuv2rgb\n", bpp);
+        if(!isPlanar(c->dstFormat) || bpp <= 24)
+            av_log(c, AV_LOG_ERROR, "%ibpp not supported by yuv2rgb\n", bpp);
         return -1;
     }
     return 0;