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) {
On Thu, Jan 17, 2008 at 10:49:25PM +0100, Roine Gustafsson wrote:
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.
Please provide more details. I have no trouble compiling with --disable-encoders. Diego
On Fri, 2008-01-18 at 17:33 +0100, Diego Biurrun wrote:
On Thu, Jan 17, 2008 at 10:49:25PM +0100, Roine Gustafsson wrote:
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.
Please provide more details. I have no trouble compiling with --disable-encoders.
Probably depends on compiler/options used. There is code which does access the nonexistent symbol. However that code is unreachable so compilation may succeed if the compiler deletes unreachable code.
participants (3)
-
diego@biurrun.de -
roine@users.sourceforge.net -
uoti.urpala@pp1.inet.fi