[FFmpeg-cvslog] r11540 - trunk/libavcodec/vc1.c

kostya subversion
Wed Jan 16 18:07:34 CET 2008


Author: kostya
Date: Wed Jan 16 18:07:34 2008
New Revision: 11540

Log:
pqindex=0 is forbidden

Modified:
   trunk/libavcodec/vc1.c

Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	(original)
+++ trunk/libavcodec/vc1.c	Wed Jan 16 18:07:34 2008
@@ -1065,6 +1065,7 @@ static int vc1_parse_frame_header(VC1Con
 
     /* Quantizer stuff */
     pqindex = get_bits(gb, 5);
+    if(!pqindex) return -1;
     if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
         v->pq = ff_vc1_pquant_table[0][pqindex];
     else
@@ -1301,6 +1302,7 @@ static int vc1_parse_frame_header_adv(VC
         }
     }
     pqindex = get_bits(gb, 5);
+    if(!pqindex) return -1;
     v->pqindex = pqindex;
     if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
         v->pq = ff_vc1_pquant_table[0][pqindex];




More information about the ffmpeg-cvslog mailing list