[FFmpeg-cvslog] r26294 - trunk/libavcodec/truemotion1.c

cehoyos subversion
Mon Jan 10 11:36:14 CET 2011


Author: cehoyos
Date: Mon Jan 10 11:36:14 2011
New Revision: 26294

Log:
Check for vectable ID > 0, fixes issue 2508.

Patch by Daniel Kang, daniel.d.kang at gmail

Modified:
   trunk/libavcodec/truemotion1.c

Modified: trunk/libavcodec/truemotion1.c
==============================================================================
--- trunk/libavcodec/truemotion1.c	Mon Jan 10 11:28:06 2011	(r26293)
+++ trunk/libavcodec/truemotion1.c	Mon Jan 10 11:36:14 2011	(r26294)
@@ -387,7 +387,7 @@ static int truemotion1_decode_header(Tru
     if ((header.compression & 1) && header.header_type)
         sel_vector_table = pc_tbl2;
     else {
-        if (header.vectable < 4)
+        if (header.vectable > 0 && header.vectable < 4)
             sel_vector_table = tables[header.vectable - 1];
         else {
             av_log(s->avctx, AV_LOG_ERROR, "invalid vector table id (%d)\n", header.vectable);



More information about the ffmpeg-cvslog mailing list