diff options
author | Ronald Bultje <rsbultje@gmail.com> | 2011-06-20 15:07:55 +0000 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-06-20 22:18:23 +0200 |
commit | d42aaa802e2b74dcb83d426001557f8229b1b484 (patch) | |
tree | c6aa193fe73b63bdfe6167f4131fd1b32811cb23 | |
parent | 3a07f5a47a16bef86faab99bc02d2fd0f396afe8 (diff) | |
download | ffmpeg-d42aaa802e2b74dcb83d426001557f8229b1b484.tar.gz |
error_resilience: actually add counter when adding a MV predictor.
Without, the predictor isn't actually used.
-rw-r--r-- | libavcodec/error_resilience.c | 1 | ||||
-rw-r--r-- | tests/ref/vsynth1/error | 4 | ||||
-rw-r--r-- | tests/ref/vsynth2/error | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index aea0e15b34..ad7a7c6ac6 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -547,6 +547,7 @@ skip_mean_and_median: mv_predictor[pred_count][0]= prev_x; mv_predictor[pred_count][1]= prev_y; ref [pred_count] = prev_ref; + pred_count++; s->mv_dir = MV_DIR_FORWARD; s->mb_intra=0; diff --git a/tests/ref/vsynth1/error b/tests/ref/vsynth1/error index 7edef21c90..bc24d5b2af 100644 --- a/tests/ref/vsynth1/error +++ b/tests/ref/vsynth1/error @@ -1,4 +1,4 @@ 7416dfd319f04044d4575dc9d1b406e1 *./tests/data/vsynth1/error-mpeg4-adv.avi 756836 ./tests/data/vsynth1/error-mpeg4-adv.avi -54342963593ba08bcde95244a011efe5 *./tests/data/error.vsynth1.out.yuv -stddev: 17.59 PSNR: 23.22 MAXDIFF: 240 bytes: 7603200/ 7603200 +79e94ba32b37759397362cbcb479d4d3 *./tests/data/error.vsynth1.out.yuv +stddev: 18.36 PSNR: 22.85 MAXDIFF: 243 bytes: 7603200/ 7603200 diff --git a/tests/ref/vsynth2/error b/tests/ref/vsynth2/error index 99363f5a42..424c54962b 100644 --- a/tests/ref/vsynth2/error +++ b/tests/ref/vsynth2/error @@ -1,4 +1,4 @@ 90e65096aa9ebafa3fe3f44a5a47cdc4 *./tests/data/vsynth2/error-mpeg4-adv.avi 176588 ./tests/data/vsynth2/error-mpeg4-adv.avi -ce12aa852126f2740838dd2da9e21a03 *./tests/data/error.vsynth2.out.yuv -stddev: 10.06 PSNR: 28.08 MAXDIFF: 193 bytes: 7603200/ 7603200 +96baa9e4c24c837a3ba5abd8dd2cdd30 *./tests/data/error.vsynth2.out.yuv +stddev: 8.98 PSNR: 29.06 MAXDIFF: 184 bytes: 7603200/ 7603200 |