[FFmpeg-cvslog] indeo5: fix null pointer crash with ref_mb

Michael Niedermayer git at videolan.org
Wed Dec 28 20:40:30 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 28 19:50:29 2011 +0100| [4b35ee0b7c0c4cbac3541a25a5e8c00b657c8f95] | committer: Michael Niedermayer

indeo5: fix null pointer crash with ref_mb

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b35ee0b7c0c4cbac3541a25a5e8c00b657c8f95
---

 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 d1ee2e0..3ccef28 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);



More information about the ffmpeg-cvslog mailing list