Browse Source

indeo5: fix null pointer crash with ref_mb

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.10
Michael Niedermayer 13 years ago
parent
commit
4b35ee0b7c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/ivi_common.c

+ 1
- 1
libavcodec/ivi_common.c View File

@@ -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);


Loading…
Cancel
Save