mirror of https://git.ffmpeg.org/ffmpeg.git
sws: disable yuv2rgb warning for planar rgb.
planar rgb formats do not use the table Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f0d3a03115
commit
6512405ce2
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue