[FFmpeg-devel] [PATCH] Common ACELP code & G.729 [4/7] - G.729 core

Vladimir Voroshilov voroshil
Tue Aug 26 22:10:48 CEST 2008


2008/8/26 Michael Niedermayer <michaelni at gmx.at>:
> On Sat, Aug 23, 2008 at 08:42:02PM +0700, Vladimir Voroshilov wrote:
>> Updated after recent changes in SVN


>> +    int16_t gain_pitch;         ///< (1.14) pitch gain of previous subframe (3.8) [SHARP_MIN ... SHARP_MAX]
> [...]
>> +    int16_t pitch_sharp;        ///< pitch sharpening of the previous frame
>
> these 2 variables are redundant, one can be removed

fixed

>> +        if(ctx->frame_erasure)
>> +        {
>> +            ctx->gain_pitch = FFMIN((29491 * ctx->gain_pitch) >> 15, 29491); // 0.9 (0.15)
>
>> +            ctx->gain_code  = (8028 * ctx->gain_code) >> 13; // 0.98 in (2.13)
>
> 2007 >> 11

fixed


-- 
Regards,
Vladimir Voroshilov mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 04_g729dec_89.diff
Type: text/x-diff
Size: 23593 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080827/ed7f17e5/attachment.diff>



More information about the ffmpeg-devel mailing list