aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-28 19:50:29 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-28 19:55:42 +0100
commit4b35ee0b7c0c4cbac3541a25a5e8c00b657c8f95 (patch)
treea229190ad9e510d55e00daac47b538cf3919abe3
parent8e09482e4d27d65bbce2ce5c2f4392216011ed09 (diff)
downloadffmpeg-4b35ee0b7c0c4cbac3541a25a5e8c00b657c8f95.tar.gz
indeo5: fix null pointer crash with ref_mb
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 d1ee2e00c9..3ccef2867c 100644
--- a/libavcodec/ivi_common.c
+++ b/libavcodec/ivi_common.c
@@ -506,7 +506,7 @@ void ff_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);