# HG changeset patch # User michael # Date 1148920256 0 # Node ID e2a44d47dae8d03a06219f161698a16ffac98f34 # Parent 7278f730af27d476f7cdf8f2f4176a1970c6b6dc cbp must be >0 here or we are in troubble diff -r 7278f730af27 -r e2a44d47dae8 h261.c --- 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++) {