Index: src/divx.c =================================================================== RCS file: /cvsroot/xawdecode/xawdecode/src/divx.c,v retrieving revision 1.216 diff -u -B -r1.216 divx.c --- src/divx.c 11 May 2008 15:34:17 -0000 1.216 +++ src/divx.c 8 Sep 2008 16:31:43 -0000 @@ -1379,7 +1379,11 @@ ) #endif { +#if LIBAVCODEC_BUILD < ((52<<16)+(0<<8)+0) codec_context->flags |= CODEC_FLAG_TRELLIS_QUANT; +#else + codec_context->trellis = 1; +#endif activated_mess("Trellis Quantization");} #endif @@ -1392,7 +1396,11 @@ ) #endif { +#if LIBAVCODEC_BUILD < ((52<<16)+(0<<8)+0) codec_context->flags |= CODEC_FLAG_TRELLIS_QUANT; +#else + codec_context->trellis = 1; +#endif codec_context->flags |= CODEC_FLAG_CBP_RD; activated_mess("Coded Block Pattern");} #endif @@ -1440,7 +1448,11 @@ if (ffmpeg.aic == 1) { if (divx.min_quantizer < 8) codec_context->qmin = 8; +#if LIBAVCODEC_BUILD < ((52<<16)+(0<<8)+0) codec_context->flags |= CODEC_FLAG_H263P_AIC; +#else + codec_context->flags |= CODEC_FLAG_AC_PRED; +#endif activated_mess("AIC");} #endif #if LIBAVCODEC_BUILD >= 4694