History

avcodec/error_resilience: Remove set-but-not-used variable

Fixes a -Wunused-but-set-variable from Clang 15.

Andreas Rheinhardt committed 3 years ago

Commit 8eb094a1 parent 945760b1 file · +2 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/error_resilience.c+2−2
@@ -393,7 +393,7 @@ static void guess_mv(ERContext *s) · 392 unmodified lines
393393 const ptrdiff_t mb_stride = s->mb_stride;
394394 const int mb_width = s->mb_width;
395395 int mb_height = s->mb_height;
396− int i, depth, num_avail;
396+ int i, num_avail;
397397 int mb_x, mb_y;
398398 ptrdiff_t mot_step, mot_stride;
399399 int blocklist_length, next_blocklist_length;
@@ -469,7 +469,7 @@ static void guess_mv(ERContext *s) · 69 unmodified lines
469469 }
470470 }
471471
472− for (depth = 0; ; depth++) {
472+ for (;;) {
473473 int changed, pass, none_left;
474474 int blocklist_index;
475475

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t