aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-06-30 10:40:37 +0200
committerReinhard Tartler <siretart@tauware.de>2013-07-04 22:06:13 +0200
commit5f7944a308df69619315a18e0a6c2661c7346990 (patch)
treea14c48e68e3de3b9e7721fae0b6793c25151f558 /libavcodec
parentf518fa6beef8c00febfeeab0c37af7a98cc77a27 (diff)
downloadffmpeg-5f7944a308df69619315a18e0a6c2661c7346990.tar.gz
indeo: check for reference when inheriting mvs
The same is done already for qdelta. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org (cherry picked from commit b36e1893ef3430f039c1eaddeedcbb378f9c4444) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ivi_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c
index 9628728b6c..956bbb162a 100644
--- a/libavcodec/ivi_common.c
+++ b/libavcodec/ivi_common.c
@@ -599,7 +599,7 @@ static int ivi_process_empty_tile(AVCodecContext *avctx, IVIBandDesc *band,
if (band->inherit_qdelta && ref_mb)
mb->q_delta = ref_mb->q_delta;
- if (band->inherit_mv) {
+ if (band->inherit_mv && ref_mb) {
/* motion vector inheritance */
if (mv_scale) {
mb->mv_x = ivi_scale_mv(ref_mb->mv_x, mv_scale);