mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
lavfi/testsrc2: fix hang with very small sizes.
Move a subtraction to the other side of the equal to avoid overflows.
This commit is contained in:
parent
86c446ec61
commit
a8305b0ea3
@ -857,8 +857,8 @@ static void test2_fill_picture(AVFilterContext *ctx, AVFrame *frame)
|
||||
uint8_t alpha[256];
|
||||
|
||||
r = s->pts;
|
||||
for (y = ymin; y < ymax - 15; y += 16) {
|
||||
for (x = xmin; x < xmax - 15; x += 16) {
|
||||
for (y = ymin; y + 15 < ymax; y += 16) {
|
||||
for (x = xmin; x + 15 < xmax; x += 16) {
|
||||
if ((x ^ y) & 16)
|
||||
continue;
|
||||
for (i = 0; i < 256; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user