diff --git a/libswscale/slice.c b/libswscale/slice.c index 2f660db4b6..44c3bd74b4 100644 --- a/libswscale/slice.c +++ b/libswscale/slice.c @@ -194,14 +194,10 @@ static void fill_ones(SwsSlice *s, int n, int bpc) for (i = 0; i < 4; ++i) { size = s->plane[i].available_lines; for (j = 0; j < size; ++j) { - if (bpc == 16) { + if (bpc >= 16) { end = (n>>1) + 1; for (k = 0; k < end; ++k) ((int32_t*)(s->plane[i].line[j]))[k] = 1<<18; - } else if (bpc == 32) { - end = (n>>2) + 1; - for (k = 0; k < end; ++k) - ((int64_t*)(s->plane[i].line[j]))[k] = 1LL<<34; } else { end = n + 1; for (k = 0; k < end; ++k)