Skip to content
Snippets Groups Projects
Commit 4b35ee0b authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

indeo5: fix null pointer crash with ref_mb

parent 8e09482e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment