Browse Source

vp9: clamp final zero MV if find_ref_mvs() found no suitable candidates.

This may actually result in a non-zero MV. Fixes ticket 4583.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Ronald S. Bultje Michael Niedermayer 10 years ago
parent
commit
138581c41a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/vp9.c

+ 1
- 0
libavcodec/vp9.c View File

@@ -1273,6 +1273,7 @@ static void find_ref_mvs(VP9Context *s,
}

AV_ZERO32(pmv);
clamp_mv(pmv, pmv, s);
#undef INVALID_MV
#undef RETURN_MV
#undef RETURN_SCALE_MV


Loading…
Cancel
Save