changeset 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 b3ee9a1526b0
files vp3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vp3.c	Sun Apr 08 18:52:03 2007 +0000
+++ b/vp3.c	Sun Apr 08 18:54:53 2007 +0000
@@ -2367,6 +2367,7 @@
     return 0;
 }
 
+#ifdef CONFIG_THEORA_DECODER
 static int theora_decode_header(AVCodecContext *avctx, GetBitContext *gb)
 {
     Vp3DecodeContext *s = avctx->priv_data;
@@ -2611,7 +2612,6 @@
     return 0;
 }
 
-#ifdef CONFIG_THEORA_DECODER
 AVCodec theora_decoder = {
     "theora",
     CODEC_TYPE_VIDEO,