Commit 6512405c authored by Michael Niedermayer's avatar Michael Niedermayer

sws: disable yuv2rgb warning for planar rgb.

planar rgb formats do not use the table
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f0d3a031
...@@ -919,7 +919,8 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], ...@@ -919,7 +919,8 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4],
break; break;
default: default:
c->yuvTable = NULL; 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 -1;
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment