History

avcodec/ffv1enc: remove mixed declarations and code

James Almer committed 1 year ago

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

Unified · Split

libavcodec/ffv1enc.c+1−1
@@ -1398,6 +1398,7 @@ static void encode_float32_remap(FFV1Context *f, FFV1SliceContext *sc, · 1397 unmodified lines
1398 for (int p= 0; p < 1 + 2*f->chroma_planes + f->transparency; p++) {1398 for (int p= 0; p < 1 + 2*f->chroma_planes + f->transparency; p++) {
1399 float score_tab[16] = {0};1399 float score_tab[16] = {0};
1400 int64_t last_val = -1;1400 int64_t last_val = -1;
1401 int best_index = 0;
1401 s.rc = sc->c;1402 s.rc = sc->c;
1402 s.i = 0;1403 s.i = 0;
1403 s.p = p;1404 s.p = p;
@@ -1417,7 +1418,6 @@ static void encode_float32_remap(FFV1Context *f, FFV1SliceContext *sc, · 13 unmodified lines
1417 last_val = val;1418 last_val = val;
1418 }1419 }
1419 }1420 }
1420 int best_index = 0;
1421 for(int si= 1; si < FF_ARRAY_ELEMS(score_tab); si++) {1421 for(int si= 1; si < FF_ARRAY_ELEMS(score_tab); si++) {
1422 if (score_tab[si] < score_tab[ best_index ])1422 if (score_tab[si] < score_tab[ best_index ])
1423 best_index = si;1423 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