comparison vp3.c @ 4826:9ca9a53a848b libavcodec

Only compile in Theora-specific functions if the Theora decoder has been enabled. Also fixes some "defined but not used" warnings in that case.
author diego
date Sun, 08 Apr 2007 18:54:53 +0000
parents 3f32f0e5a77b
children b34f448e1a12
comparison
equal deleted inserted replaced
4825:3f32f0e5a77b 4826:9ca9a53a848b
2365 s->huff_code_size--; 2365 s->huff_code_size--;
2366 } 2366 }
2367 return 0; 2367 return 0;
2368 } 2368 }
2369 2369
2370 #ifdef CONFIG_THEORA_DECODER
2370 static int theora_decode_header(AVCodecContext *avctx, GetBitContext *gb) 2371 static int theora_decode_header(AVCodecContext *avctx, GetBitContext *gb)
2371 { 2372 {
2372 Vp3DecodeContext *s = avctx->priv_data; 2373 Vp3DecodeContext *s = avctx->priv_data;
2373 2374
2374 s->theora = get_bits_long(gb, 24); 2375 s->theora = get_bits_long(gb, 24);
2609 2610
2610 vp3_decode_init(avctx); 2611 vp3_decode_init(avctx);
2611 return 0; 2612 return 0;
2612 } 2613 }
2613 2614
2614 #ifdef CONFIG_THEORA_DECODER
2615 AVCodec theora_decoder = { 2615 AVCodec theora_decoder = {
2616 "theora", 2616 "theora",
2617 CODEC_TYPE_VIDEO, 2617 CODEC_TYPE_VIDEO,
2618 CODEC_ID_THEORA, 2618 CODEC_ID_THEORA,
2619 sizeof(Vp3DecodeContext), 2619 sizeof(Vp3DecodeContext),