diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-06-30 10:40:37 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-07-01 04:20:58 +0200 |
commit | b36e1893ef3430f039c1eaddeedcbb378f9c4444 (patch) | |
tree | f1e9a8bead47a1072926cfa426e9c03d7dd3008e /libavcodec | |
parent | 1194a410807bac3eafbeb632578b937656d273e7 (diff) | |
download | ffmpeg-b36e1893ef3430f039c1eaddeedcbb378f9c4444.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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ivi_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index 39e9f92953..4eee19be69 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -603,7 +603,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); |