Mercurial > libavcodec.hg
comparison vp3.c @ 1518:c66cdace3bf6 libavcodec
theora comments skipping
author | alex |
---|---|
date | Sat, 11 Oct 2003 19:40:45 +0000 |
parents | 0f0e9dfa6723 |
children | 932d306bf1dc |
comparison
equal
deleted
inserted
replaced
1517:d107c545d745 | 1518:c66cdace3bf6 |
---|---|
2888 vp3_decode_init(avctx); | 2888 vp3_decode_init(avctx); |
2889 | 2889 |
2890 return 0; | 2890 return 0; |
2891 } | 2891 } |
2892 | 2892 |
2893 static int theora_decode_comments(AVCodecContext *avctx, GetBitContext gb) | |
2894 { | |
2895 int nb_comments, i, tmp; | |
2896 | |
2897 tmp = get_bits(&gb, 32); | |
2898 while(tmp-=8) | |
2899 skip_bits(&gb, 8); | |
2900 | |
2901 nb_comments = get_bits(&gb, 32); | |
2902 for (i = 0; i < nb_comments; i++) | |
2903 { | |
2904 tmp = get_bits(&gb, 32); | |
2905 while(tmp-=8) | |
2906 skip_bits(&gb, 8); | |
2907 } | |
2908 | |
2909 return 0; | |
2910 } | |
2911 | |
2893 static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb) | 2912 static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb) |
2894 { | 2913 { |
2895 Vp3DecodeContext *s = avctx->priv_data; | 2914 Vp3DecodeContext *s = avctx->priv_data; |
2896 int i; | 2915 int i; |
2897 | 2916 |
2946 case 0x80: | 2965 case 0x80: |
2947 theora_decode_header(avctx, gb); | 2966 theora_decode_header(avctx, gb); |
2948 vp3_decode_init(avctx); | 2967 vp3_decode_init(avctx); |
2949 break; | 2968 break; |
2950 case 0x81: | 2969 case 0x81: |
2951 /* comment */ | 2970 theora_decode_comments(avctx, gb); |
2952 break; | 2971 break; |
2953 case 0x82: | 2972 case 0x82: |
2954 theora_decode_tables(avctx, gb); | 2973 theora_decode_tables(avctx, gb); |
2955 break; | 2974 break; |
2956 } | 2975 } |