diff raw.c @ 3777:20545fbb6f7c libavcodec

add some #ifdef CONFIG_ENCODERS/DECODERS
author mru
date Wed, 27 Sep 2006 19:54:07 +0000
parents d4ab276e5987
children c8c591fe26f8
line wrap: on
line diff
--- a/raw.c	Wed Sep 27 19:47:39 2006 +0000
+++ b/raw.c	Wed Sep 27 19:54:07 2006 +0000
@@ -164,7 +164,7 @@
 }
 
 /* RAW Encoder Implementation */
-
+#ifdef CONFIG_RAWVIDEO_ENCODER
 static int raw_init_encoder(AVCodecContext *avctx)
 {
     avctx->coded_frame = (AVFrame *)avctx->priv_data;
@@ -182,7 +182,6 @@
                                                avctx->height, frame, buf_size);
 }
 
-#ifdef CONFIG_RAWVIDEO_ENCODER
 AVCodec rawvideo_encoder = {
     "rawvideo",
     CODEC_TYPE_VIDEO,