summaryrefslogtreecommitdiff
path: root/libavcodec/h261.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-05-29 16:30:56 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-05-29 16:30:56 +0000
commit5964935c920ee227414c9d020a2318b3410fd789 (patch)
treedc614d481ce99be0063ad023e51869265a2db873 /libavcodec/h261.c
parent5d18eaad1349342b910f41fff5e49f9b4d6f033f (diff)
cbp must be >0 here or we are in troubble
Originally committed as revision 5420 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h261.c')
-rw-r--r--libavcodec/h261.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h261.c b/libavcodec/h261.c
index 96b5af1f64..a1a7f14f56 100644
--- a/libavcodec/h261.c
+++ b/libavcodec/h261.c
@@ -264,6 +264,7 @@ void ff_h261_encode_mb(MpegEncContext * s,
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++) {