diff parser.c @ 3432:ab49baf4adad libavcodec

Fix compilation with --disable-decoders. patch by Emiliano Parasassi, millallo --at-- gmail --dot-- com
author diego
date Fri, 07 Jul 2006 11:08:58 +0000
parents b7826511f7b6
children cc4b4ea83e29
line wrap: on
line diff
--- a/parser.c	Fri Jul 07 10:50:14 2006 +0000
+++ b/parser.c	Fri Jul 07 11:08:58 2006 +0000
@@ -534,6 +534,7 @@
     return next;
 }
 
+#ifdef CONFIG_CAVS_DECODER
 static int cavsvideo_parse(AVCodecParserContext *s,
                            AVCodecContext *avctx,
                            uint8_t **poutbuf, int *poutbuf_size,
@@ -557,6 +558,7 @@
     *poutbuf_size = buf_size;
     return next;
 }
+#endif /* CONFIG_CAVS_DECODER */
 
 static int mpeg4video_split(AVCodecContext *avctx,
                            const uint8_t *buf, int buf_size)
@@ -1012,6 +1014,7 @@
     mpeg4video_split,
 };
 
+#ifdef CONFIG_CAVS_DECODER
 AVCodecParser cavsvideo_parser = {
     { CODEC_ID_CAVS },
     sizeof(ParseContext1),
@@ -1020,6 +1023,7 @@
     parse1_close,
     mpeg4video_split,
 };
+#endif
 
 AVCodecParser mpegaudio_parser = {
     { CODEC_ID_MP2, CODEC_ID_MP3 },