Commit 7ded0179 authored by Michael Niedermayer's avatar Michael Niedermayer

sws/output/yuv2gbrp_full_X_c(): silence warning about uninitialized variable

clang did not show this one, so i missed it in the last batch
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4868855b
...@@ -1498,13 +1498,14 @@ yuv2gbrp_full_X_c(SwsContext *c, const int16_t *lumFilter, ...@@ -1498,13 +1498,14 @@ yuv2gbrp_full_X_c(SwsContext *c, const int16_t *lumFilter,
int hasAlpha = (desc->flags & PIX_FMT_ALPHA) && alpSrc; int hasAlpha = (desc->flags & PIX_FMT_ALPHA) && alpSrc;
uint16_t **dest16 = (uint16_t**)dest; uint16_t **dest16 = (uint16_t**)dest;
int SH = 22 + 7 - desc->comp[0].depth_minus1; int SH = 22 + 7 - desc->comp[0].depth_minus1;
int A = 0; // init to silence warning
for (i = 0; i < dstW; i++) { for (i = 0; i < dstW; i++) {
int j; int j;
int Y = 1 << 9; int Y = 1 << 9;
int U = (1 << 9) - (128 << 19); int U = (1 << 9) - (128 << 19);
int V = (1 << 9) - (128 << 19); int V = (1 << 9) - (128 << 19);
int R, G, B, A; int R, G, B;
for (j = 0; j < lumFilterSize; j++) for (j = 0; j < lumFilterSize; j++)
Y += lumSrc[j][i] * lumFilter[j]; Y += lumSrc[j][i] * lumFilter[j];
......
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