[Ffmpeg-cvslog] r8685 - trunk/libavcodec/vp3.c

diego subversion
Sun Apr 8 20:54:53 CEST 2007


Author: diego
Date: Sun Apr  8 20:54:53 2007
New Revision: 8685

Modified:
   trunk/libavcodec/vp3.c

Log:
Only compile in Theora-specific functions if the Theora decoder has been
enabled.  Also fixes some "defined but not used" warnings in that case.


Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c	(original)
+++ trunk/libavcodec/vp3.c	Sun Apr  8 20:54:53 2007
@@ -2367,6 +2367,7 @@ static int read_huffman_tree(AVCodecCont
     return 0;
 }
 
+#ifdef CONFIG_THEORA_DECODER
 static int theora_decode_header(AVCodecContext *avctx, GetBitContext *gb)
 {
     Vp3DecodeContext *s = avctx->priv_data;
@@ -2611,7 +2612,6 @@ static int theora_decode_init(AVCodecCon
     return 0;
 }
 
-#ifdef CONFIG_THEORA_DECODER
 AVCodec theora_decoder = {
     "theora",
     CODEC_TYPE_VIDEO,




More information about the ffmpeg-cvslog mailing list