[FFmpeg-cvslog] vc1dec: sanity check state used in get_mvdata_interlaced()

Michael Niedermayer git at videolan.org
Tue Mar 27 13:36:40 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Mar 27 13:20:51 2012 +0200| [b378a233957bc05aa8e40cc88023c558aa45beba] | committer: Michael Niedermayer

vc1dec: sanity check state used in get_mvdata_interlaced()

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

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

 libavcodec/vc1dec.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 2c5ddc5..cbffec1 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -39,6 +39,7 @@
 #include "simple_idct.h"
 #include "mathops.h"
 #include "vdpau_internal.h"
+#include "libavutil/avassert.h"
 
 #undef NDEBUG
 #include <assert.h>
@@ -1137,6 +1138,7 @@ static av_always_inline void get_mvdata_interlaced(VC1Context *v, int *dmv_x,
         }
     }
     else {
+        av_assert0(index < esc);
         if (extend_x)
             offs_tab = offset_table2;
         else



More information about the ffmpeg-cvslog mailing list