diff mpegvideo.c @ 1902:a5588762c4fa libavcodec

Compile fix by (Chip <szarlada at freemail dot hu>)
author michael
date Mon, 22 Mar 2004 12:07:02 +0000
parents 3135de68d556
children 129236143f2e
line wrap: on
line diff
--- a/mpegvideo.c	Mon Mar 22 11:00:51 2004 +0000
+++ b/mpegvideo.c	Mon Mar 22 12:07:02 2004 +0000
@@ -536,6 +536,8 @@
  * sets the given MpegEncContext to defaults for encoding.
  * the changed fields will not depend upon the prior state of the MpegEncContext.
  */
+
+#ifdef CONFIG_ENCODERS
 void MPV_encode_defaults(MpegEncContext *s){
     static int done=0;
     
@@ -556,6 +558,7 @@
     s->me.mv_penalty= default_mv_penalty;
     s->fcode_tab= default_fcode_tab;
 }
+#endif //CONFIG_ENCODERS
 
 /** 
  * init common structure for both encoder and decoder.