History

avcodec/ffv1enc: remove mixed declarations and code

James Almer committed 1 year ago

Commit 044664a1 parent a4cf0971 file · +1 −1Browse files

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

Unified · Split

libavcodec/ffv1enc.c+1−1
@@ -1398,6 +1398,7 @@ static void encode_float32_remap(FFV1Context *f, FFV1SliceContext *sc, · 1397 unmodified lines
13981398 for (int p= 0; p < 1 + 2*f->chroma_planes + f->transparency; p++) {
13991399 float score_tab[16] = {0};
14001400 int64_t last_val = -1;
1401+ int best_index = 0;
14011402 s.rc = sc->c;
14021403 s.i = 0;
14031404 s.p = p;
@@ -1417,7 +1418,6 @@ static void encode_float32_remap(FFV1Context *f, FFV1SliceContext *sc, · 13 unmodified lines
14171418 last_val = val;
14181419 }
14191420 }
1420− int best_index = 0;
14211421 for(int si= 1; si < FF_ARRAY_ELEMS(score_tab); si++) {
14221422 if (score_tab[si] < score_tab[ best_index ])
14231423 best_index = si;

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