[Ffmpeg-cvslog] r5420 - trunk/libavcodec/h261.c

michael subversion
Mon May 29 18:30:57 CEST 2006


Author: michael
Date: Mon May 29 18:30:56 2006
New Revision: 5420

Modified:
   trunk/libavcodec/h261.c

Log:
cbp must be >0 here or we are in troubble


Modified: trunk/libavcodec/h261.c
==============================================================================
--- trunk/libavcodec/h261.c	(original)
+++ trunk/libavcodec/h261.c	Mon May 29 18:30:56 2006
@@ -264,6 +264,7 @@
     h->previous_mba = h->current_mba;
 
     if(HAS_CBP(h->mtype)){
+        assert(cbp>0);
         put_bits(&s->pb,h261_cbp_tab[cbp-1][1],h261_cbp_tab[cbp-1][0]);
     }
     for(i=0; i<6; i++) {




More information about the ffmpeg-cvslog mailing list