Commit 4b35ee0b authored by Michael Niedermayer's avatar Michael Niedermayer

indeo5: fix null pointer crash with ref_mb

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8e09482e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment