They are set by sws_init_context(). May help with signed integer overflows reported by gcc-usan.
Unified · Split
| @@ -135,12 +135,6 @@ static void check_output_yuv2gbrp(void) · 134 unmodified lines | ||
| 135 | 135 | fail(); |
| 136 | 136 | |
| 137 | 137 | ctx->flags |= SWS_FULL_CHR_H_INT; |
| 138 | − ctx->yuv2rgb_y_offset = rnd(); | |
| 139 | − ctx->yuv2rgb_y_coeff = rnd(); | |
| 140 | − ctx->yuv2rgb_v2r_coeff = rnd(); | |
| 141 | − ctx->yuv2rgb_v2g_coeff = rnd(); | |
| 142 | − ctx->yuv2rgb_u2g_coeff = rnd(); | |
| 143 | − ctx->yuv2rgb_u2b_coeff = rnd(); | |
| 144 | 138 | |
| 145 | 139 | for (fmi = 0; fmi < FF_ARRAY_ELEMS(planar_fmts); fmi++) { |
| 146 | 140 | for (fsi = 0; fsi < FILTER_SIZES; fsi++) { |