comparison vp3.c @ 2173:380c40efd6bb libavcodec

get_bits(32) fix
author michael
date Mon, 16 Aug 2004 01:25:52 +0000
parents 4225c131a2eb
children 26560d4fdb1f
comparison
equal deleted inserted replaced
2172:2f01eb357e33 2173:380c40efd6bb
2717 2717
2718 static int theora_decode_comments(AVCodecContext *avctx, GetBitContext gb) 2718 static int theora_decode_comments(AVCodecContext *avctx, GetBitContext gb)
2719 { 2719 {
2720 int nb_comments, i, tmp; 2720 int nb_comments, i, tmp;
2721 2721
2722 tmp = get_bits(&gb, 32); 2722 tmp = get_bits_long(&gb, 32);
2723 tmp = be2me_32(tmp); 2723 tmp = be2me_32(tmp);
2724 while(tmp--) 2724 while(tmp--)
2725 skip_bits(&gb, 8); 2725 skip_bits(&gb, 8);
2726 2726
2727 nb_comments = get_bits(&gb, 32); 2727 nb_comments = get_bits_long(&gb, 32);
2728 nb_comments = be2me_32(nb_comments); 2728 nb_comments = be2me_32(nb_comments);
2729 for (i = 0; i < nb_comments; i++) 2729 for (i = 0; i < nb_comments; i++)
2730 { 2730 {
2731 tmp = get_bits(&gb, 32); 2731 tmp = get_bits_long(&gb, 32);
2732 tmp = be2me_32(tmp); 2732 tmp = be2me_32(tmp);
2733 while(tmp--) 2733 while(tmp--)
2734 skip_bits(&gb, 8); 2734 skip_bits(&gb, 8);
2735 } 2735 }
2736 2736