mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
sws: disable scale16 when int32 is used
This commit is contained in:
parent
987e4c1787
commit
ca78fa24b7
@ -2881,8 +2881,8 @@ static av_cold void sws_init_swScale_c(SwsContext *c)
|
||||
}
|
||||
}
|
||||
|
||||
if(((isAnyRGB(c->srcFormat) && av_pix_fmt_descriptors[c->srcFormat].comp[0].depth_minus1<15)
|
||||
|| c->srcFormat == PIX_FMT_PAL8) && c->scalingBpp == 8)
|
||||
if((isAnyRGB(c->srcFormat) && av_pix_fmt_descriptors[c->srcFormat].comp[0].depth_minus1<15)
|
||||
|| c->srcFormat == PIX_FMT_PAL8)
|
||||
c->hScale16= hScale16N_c;
|
||||
|
||||
if (c->scalingBpp == 8) {
|
||||
@ -2902,6 +2902,7 @@ static av_cold void sws_init_swScale_c(SwsContext *c)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
c->hScale16 = NULL;
|
||||
c->hScale = hScale16_c;
|
||||
c->scale19To15Fw = scale19To15Fw_c;
|
||||
c->scale8To16Rv = scale8To16Rv_c;
|
||||
|
@ -2438,6 +2438,8 @@ static av_cold void RENAME(sws_init_swScale)(SwsContext *c)
|
||||
}
|
||||
}
|
||||
#endif /* !COMPILE_TEMPLATE_MMX2 */
|
||||
if(isAnyRGB(c->srcFormat) && av_pix_fmt_descriptors[c->srcFormat].comp[0].depth_minus1<15 && c->scalingBpp == 8)
|
||||
if(isAnyRGB(c->srcFormat) && av_pix_fmt_descriptors[c->srcFormat].comp[0].depth_minus1<15)
|
||||
c->hScale16= RENAME(hScale16);
|
||||
if(c->scalingBpp != 8)
|
||||
c->hScale16 = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user