[FFmpeg-devel] [PATCH] libavcodec/lpc.c: Fix warning about uninitialized variable

Jai Menon jmenon86
Tue Feb 10 09:44:04 CET 2009

On Tue, Feb 10, 2009 at 2:08 PM, Patrik Kullman <patrik at yes.nu> wrote:
> If use_lpc < 1 and max_order > 0, weight would be uninitialized.

since a use_lpc of 0 was never intended, maybe an assert could be used....

> Also, if that would be true, a division would occur with weight as
> divisor, which is why I set it to 1.



More information about the ffmpeg-devel mailing list