[FFmpeg-devel] snow without CONFIG_ENCODERS

Roine Gustafsson roine
Thu Jan 17 22:49:25 CET 2008


Aureliens change in r10655 partly reverted a patch by Guillaume  
( http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2006-August/ 
013995.html ) which means snow without CONFIG_ENCODERS again breaks.  
I now get h263_encode_init as an undefined symbol in snow.c:encode_init.

Reverting r10655 works for me. I would prefer bracketing away the  
encode functions completely instead, like Guillaume originally  
suggested.


--- snow.c      (revision 11551)
+++ snow.c      (working copy)
@@ -4049,6 +4049,7 @@

  #endif /* QUANTIZE2==1 */

+#ifdef CONFIG_SNOW_ENCODER
  static int encode_init(AVCodecContext *avctx)
  {
      SnowContext *s = avctx->priv_data;
@@ -4148,6 +4149,7 @@

      return 0;
  }
+#endif

  #define USE_HALFPEL_PLANE 0

@@ -4235,6 +4237,7 @@
      return 0;
  }

+#ifdef CONFIG_SNOW_ENCODER
  static int encode_frame(AVCodecContext *avctx, unsigned char *buf,  
int buf_size, void *data){
      SnowContext *s = avctx->priv_data;
      RangeCoder * const c= &s->c;
@@ -4516,6 +4519,7 @@

      return ff_rac_terminate(c);
  }
+#endif

  static void common_end(SnowContext *s){
      int plane_index, level, orientation, i;
@@ -4548,6 +4552,7 @@
      }
  }

+#ifdef CONFIG_SNOW_ENCODER
  static int encode_end(AVCodecContext *avctx)
  {
      SnowContext *s = avctx->priv_data;
@@ -4557,6 +4562,7 @@

      return 0;
  }
+#endif

  static int decode_init(AVCodecContext *avctx)
  {

-------------- next part --------------
A non-text attachment was scrubbed...
Name: snow.diff
Type: application/octet-stream
Size: 1038 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080117/7721b430/attachment.obj>
-------------- next part --------------





More information about the ffmpeg-devel mailing list