Revision 3f16ed15

View differences:

libavcodec/qcelpdec.c
536 536
            }
537 537
        }else
538 538
        {
539
            float max_pitch_gain = q->erasure_count < 3 ? 0.9 - 0.3 * (q->erasure_count - 1) : 0.0;
539
            float max_pitch_gain;
540

  
541
            if (q->erasure_count < 3)
542
                max_pitch_gain = 0.9 - 0.3 * (q->erasure_count - 1);
543
             else
544
                max_pitch_gain = 0.0;
540 545
            for(i=0; i<4; i++)
541 546
                q->pitch_gain[i] = FFMIN(q->pitch_gain[i], max_pitch_gain);
542 547

  

Also available in: Unified diff