Only compile in Theora-specific functions if the Theora decoder has been
enabled. Also fixes some "defined but not used" warnings in that case. Originally committed as revision 8685 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6f6a3e2acb
commit
597cbdaf03
@ -2367,6 +2367,7 @@ static int read_huffman_tree(AVCodecContext *avctx, GetBitContext *gb)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_THEORA_DECODER
|
||||||
static int theora_decode_header(AVCodecContext *avctx, GetBitContext *gb)
|
static int theora_decode_header(AVCodecContext *avctx, GetBitContext *gb)
|
||||||
{
|
{
|
||||||
Vp3DecodeContext *s = avctx->priv_data;
|
Vp3DecodeContext *s = avctx->priv_data;
|
||||||
@ -2611,7 +2612,6 @@ static int theora_decode_init(AVCodecContext *avctx)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_THEORA_DECODER
|
|
||||||
AVCodec theora_decoder = {
|
AVCodec theora_decoder = {
|
||||||
"theora",
|
"theora",
|
||||||
CODEC_TYPE_VIDEO,
|
CODEC_TYPE_VIDEO,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user