Fix compilation with --disable-encoders.
authorAlexander Strange <astrange@ithinksw.com>
Sun, 1 Oct 2006 18:19:49 +0000 (18:19 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 1 Oct 2006 18:19:49 +0000 (18:19 +0000)
patch by Alexander Strange, astrange at ithinksw dot com

Originally committed as revision 6410 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dv.c

index c6f0399..fca331b 100644 (file)
@@ -1196,7 +1196,7 @@ static void dv_format_frame(DVVideoContext* c, uint8_t* buf)
 }
 
 
-
+#ifdef CONFIG_ENCODERS
 static int dvvideo_encode_frame(AVCodecContext *c, uint8_t *buf, int buf_size,
                                 void *data)
 {
@@ -1223,6 +1223,7 @@ static int dvvideo_encode_frame(AVCodecContext *c, uint8_t *buf, int buf_size,
 
     return s->sys->frame_size;
 }
+#endif
 
 static int dvvideo_close(AVCodecContext *c)
 {