Commit 0bd2e2a8 authored by michael's avatar michael

cbp must be >0 here or we are in troubble


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5420 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 501ec191
......@@ -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++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment