Module: libav Branch: master Commit: 813784a8bf907f6fd1d96c11e85586cee5c05695
Author: Michael Niedermayer <[email protected]> Committer: Derek Buitenhuis <[email protected]> Date: Sat Jan 26 23:05:26 2013 +0100 sws: disable yuv2rgb warning for planar rgb. planar rgb formats do not use the table Signed-off-by: Michael Niedermayer <[email protected]> Signed-off-by: Derek Buitenhuis <[email protected]> --- libswscale/yuv2rgb.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index 1dbd0d8..73640da 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; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
