cbp must be >0 here or we are in troubble
Originally committed as revision 5420 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5d18eaad13
commit
5964935c92
@ -264,6 +264,7 @@ void ff_h261_encode_mb(MpegEncContext * s,
|
|||||||
h->previous_mba = h->current_mba;
|
h->previous_mba = h->current_mba;
|
||||||
|
|
||||||
if(HAS_CBP(h->mtype)){
|
if(HAS_CBP(h->mtype)){
|
||||||
|
assert(cbp>0);
|
||||||
put_bits(&s->pb,h261_cbp_tab[cbp-1][1],h261_cbp_tab[cbp-1][0]);
|
put_bits(&s->pb,h261_cbp_tab[cbp-1][1],h261_cbp_tab[cbp-1][0]);
|
||||||
}
|
}
|
||||||
for(i=0; i<6; i++) {
|
for(i=0; i<6; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user