comparison svq1.c @ 1379:f0d3fdee007e libavcodec

get_bits -> skip_bits
author al3x
date Fri, 25 Jul 2003 13:36:08 +0000
parents 0fd38b711f06
children 932d306bf1dc
comparison
equal deleted inserted replaced
1378:1831d86117a3 1379:f0d3fdee007e
614 svq1_parse_string (bitbuf, (char *) msg); 614 svq1_parse_string (bitbuf, (char *) msg);
615 615
616 printf ("embedded message: \"%s\"\n", (char *) msg); 616 printf ("embedded message: \"%s\"\n", (char *) msg);
617 } 617 }
618 618
619 get_bits (bitbuf, 2); 619 skip_bits (bitbuf, 2);
620 get_bits (bitbuf, 2); 620 skip_bits (bitbuf, 2);
621 get_bits (bitbuf, 1); 621 skip_bits1 (bitbuf);
622 622
623 /* load frame size */ 623 /* load frame size */
624 frame_size_code = get_bits (bitbuf, 3); 624 frame_size_code = get_bits (bitbuf, 3);
625 625
626 if (frame_size_code == 7) { 626 if (frame_size_code == 7) {
637 } 637 }
638 } 638 }
639 639
640 /* unknown fields */ 640 /* unknown fields */
641 if (get_bits (bitbuf, 1) == 1) { 641 if (get_bits (bitbuf, 1) == 1) {
642 get_bits (bitbuf, 1); /* use packet checksum if (1) */ 642 skip_bits1 (bitbuf); /* use packet checksum if (1) */
643 get_bits (bitbuf, 1); /* component checksums after image data if (1) */ 643 skip_bits1 (bitbuf); /* component checksums after image data if (1) */
644 644
645 if (get_bits (bitbuf, 2) != 0) 645 if (get_bits (bitbuf, 2) != 0)
646 return -1; 646 return -1;
647 } 647 }
648 648
649 if (get_bits (bitbuf, 1) == 1) { 649 if (get_bits (bitbuf, 1) == 1) {
650 get_bits (bitbuf, 1); 650 skip_bits1 (bitbuf);
651 get_bits (bitbuf, 4); 651 skip_bits (bitbuf, 4);
652 get_bits (bitbuf, 1); 652 skip_bits1 (bitbuf);
653 get_bits (bitbuf, 2); 653 skip_bits (bitbuf, 2);
654 654
655 while (get_bits (bitbuf, 1) == 1) { 655 while (get_bits (bitbuf, 1) == 1) {
656 get_bits (bitbuf, 8); 656 skip_bits (bitbuf, 8);
657 } 657 }
658 } 658 }
659 659
660 return 0; 660 return 0;
661 } 661 }