History

error_resilience: actually add counter when adding a MV predictor.

Without, the predictor isn't actually used.

Ronald Bultje committed 15 years ago

Commit d42aaa81 parent 3a07f5a3 files · +5 −4Browse files

Unified · Split

3 files
  1. libavcodec/error_resilience.c +1 −0
  2. tests/ref/vsynth1/error +2 −2
  3. tests/ref/vsynth2/error +2 −2
libavcodec/error_resilience.c+1−0
@@ -547,6 +547,7 @@ skip_mean_and_median: · 546 unmodified lines
547547 mv_predictor[pred_count][0]= prev_x;
548548 mv_predictor[pred_count][1]= prev_y;
549549 ref [pred_count] = prev_ref;
550+ pred_count++;
550551
551552 s->mv_dir = MV_DIR_FORWARD;
552553 s->mb_intra=0;
tests/ref/vsynth1/error+2−2
@@ -1,4 +1,4 @@
11 7416dfd319f04044d4575dc9d1b406e1 *./tests/data/vsynth1/error-mpeg4-adv.avi
22 756836 ./tests/data/vsynth1/error-mpeg4-adv.avi
3−54342963593ba08bcde95244a011efe5 *./tests/data/error.vsynth1.out.yuv
4−stddev: 17.59 PSNR: 23.22 MAXDIFF: 240 bytes: 7603200/ 7603200
3+79e94ba32b37759397362cbcb479d4d3 *./tests/data/error.vsynth1.out.yuv
4+stddev: 18.36 PSNR: 22.85 MAXDIFF: 243 bytes: 7603200/ 7603200
tests/ref/vsynth2/error+2−2
@@ -1,4 +1,4 @@
11 90e65096aa9ebafa3fe3f44a5a47cdc4 *./tests/data/vsynth2/error-mpeg4-adv.avi
22 176588 ./tests/data/vsynth2/error-mpeg4-adv.avi
3−ce12aa852126f2740838dd2da9e21a03 *./tests/data/error.vsynth2.out.yuv
4−stddev: 10.06 PSNR: 28.08 MAXDIFF: 193 bytes: 7603200/ 7603200
3+96baa9e4c24c837a3ba5abd8dd2cdd30 *./tests/data/error.vsynth2.out.yuv
4+stddev: 8.98 PSNR: 29.06 MAXDIFF: 184 bytes: 7603200/ 7603200

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