comparison h261.c @ 2143:8eae8e652584 libavcodec

argh
author michael
date Mon, 26 Jul 2004 16:49:00 +0000
parents 8afd396fa198
children 35fc37209ea0
comparison
equal deleted inserted replaced
2142:caacb3f9ee51 2143:8eae8e652584
522 return 0; 522 return 0;
523 } 523 }
524 524
525 static int h261_decode_gob(H261Context *h){ 525 static int h261_decode_gob(H261Context *h){
526 MpegEncContext * const s = &h->s; 526 MpegEncContext * const s = &h->s;
527 int v;
527 528
528 ff_set_qscale(s, s->qscale); 529 ff_set_qscale(s, s->qscale);
529 530
530 /* check for empty gob */ 531 /* check for empty gob */
531 int v= show_bits(&s->gb, 15); 532 v= show_bits(&s->gb, 15);
532 533
533 if(get_bits_count(&s->gb) + 15 > s->gb.size_in_bits){ 534 if(get_bits_count(&s->gb) + 15 > s->gb.size_in_bits){
534 v>>= get_bits_count(&s->gb) + 15 - s->gb.size_in_bits; 535 v>>= get_bits_count(&s->gb) + 15 - s->gb.size_in_bits;
535 } 536 }
536 537