Commit 3751e5a8 authored by Michael Niedermayer's avatar Michael Niedermayer

swscale/swscale: clear to/from convert pointers when they used.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b465aaa5
......@@ -731,6 +731,8 @@ static av_cold void sws_init_swscale(SwsContext *c)
: hScale16To15_c;
}
c->lumConvertRange = NULL;
c->chrConvertRange = NULL;
if (c->srcRange != c->dstRange && !isAnyRGB(c->dstFormat)) {
if (c->dstBpc <= 14) {
if (c->srcRange) {
......
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