aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-26 23:05:26 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2013-02-09 14:32:50 -0500
commit813784a8bf907f6fd1d96c11e85586cee5c05695 (patch)
treec28a04586e85bcd011e8414b6b8ec108b6ebd320
parent7b41c24c5fa221b55a9302efaf1a9eeb38b12551 (diff)
downloadffmpeg-813784a8bf907f6fd1d96c11e85586cee5c05695.tar.gz
sws: disable yuv2rgb warning for planar rgb.
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>
-rw-r--r--libswscale/yuv2rgb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 1dbd0d8e10..73640da41c 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -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;