[FFmpeg-cvslog] r17459 - trunk/libavcodec/wmaenc.c

Guillaume POIRIER poirierg
Thu Feb 19 21:05:09 CET 2009


Hello,

On Thu, Feb 19, 2009 at 6:54 PM, michael <subversion at mplayerhq.hu> wrote:
> Author: michael
> Date: Thu Feb 19 18:54:23 2009
> New Revision: 17459
>
> Log:
> A try to fix the regressions.
>
> Modified:
>   trunk/libavcodec/wmaenc.c
>
> Modified: trunk/libavcodec/wmaenc.c
> ==============================================================================
> --- trunk/libavcodec/wmaenc.c   Thu Feb 19 13:21:09 2009        (r17458)
> +++ trunk/libavcodec/wmaenc.c   Thu Feb 19 18:54:23 2009        (r17459)
> @@ -287,6 +287,10 @@ static int encode_block(WMACodecContext
>                         if(1<<coef_nb_bits <= abs_level)
>                             return -1;
>
> +
> +                        //Workaround minor rounding differences for the regression tests, FIXME we should find and replace the problematic float by fixpoint for reg tests
> +                        if(abs_level == 0x71B && (s->avctx->flags & CODEC_FLAG_BITEXACT)) abs_level=0x71A;
> +
>                         put_bits(&s->pb, coef_nb_bits, abs_level);
>                         put_bits(&s->pb, s->frame_len_bits, run);
>                     }

32-bits PowerPC regtests still passes OK with GCC-4.2 after this patch.

Guillaume
-- 
Only a very small fraction of our DNA does anything; the rest is all
comments and ifdefs.

Katharine Hepburn  - "Life is hard. After all, it kills you."




More information about the ffmpeg-cvslog mailing list