Revision 91381201

View differences:

libavcodec/vp3.c
2890 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 2912
static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb)
2894 2913
{
2895 2914
    Vp3DecodeContext *s = avctx->priv_data;
......
2948 2967
	    vp3_decode_init(avctx);
2949 2968
    	    break;
2950 2969
	case 0x81:
2951
	    /* comment */
2970
	    theora_decode_comments(avctx, gb);
2952 2971
	    break;
2953 2972
	case 0x82:
2954 2973
	    theora_decode_tables(avctx, gb);

Also available in: Unified diff