History

avcodec/ffv1enc: update missing Unit accesses inside av_assert2

Fixes compilation with assert-level=2.

James Almer committed 1 year ago

Commit a4cf0971 parent 702239b1 file · +2 −2Browse files

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

Unified · Split

libavcodec/ffv1enc.c+2−2
@@ -1341,7 +1341,7 @@ static int encode_float32_remap_segment(FFV1SliceContext *sc, · 1340 unmodified lines
13411341 if (val - s.last_val == 1) {
13421342 s.delta_stack[s.run] = delta;
13431343 s.run ++;
1344− av_assert2(s.i == s.pixel_num || s.last_val + current_mul + delta == unit[s.p][s.i].val);
1344+ av_assert2(s.i == s.pixel_num || s.last_val + current_mul + delta == sc->unit[s.p][s.i].val);
13451345 s.last_val += current_mul + delta;
13461346 } else {
13471347 put_symbol_inline(&s.rc, s.state[s.lu][0], s.run, 0, NULL, NULL);
@@ -1368,7 +1368,7 @@ static int encode_float32_remap_segment(FFV1SliceContext *sc, · 20 unmodified lines
13681368 if (val - s.last_val == 1)
13691369 s.lu ^= 1;
13701370
1371− av_assert2(s.i == s.pixel_num || s.last_val + (val - s.last_val) * current_mul + delta == unit[s.p][s.i].val);
1371+ av_assert2(s.i == s.pixel_num || s.last_val + (val - s.last_val) * current_mul + delta == sc->unit[s.p][s.i].val);
13721372 if (s.i < s.pixel_num)
13731373 s.last_val = sc->unit[s.p][s.i].val;
13741374 }

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