changeset 3317:e2a44d47dae8 libavcodec

cbp must be >0 here or we are in troubble
author michael
date Mon, 29 May 2006 16:30:56 +0000
parents 7278f730af27
children 8dc886b9568a
files h261.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h261.c	Sun May 28 22:44:14 2006 +0000
+++ b/h261.c	Mon May 29 16:30:56 2006 +0000
@@ -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++) {