[FFmpeg-devel] avfilter/af_astats: Avoid Zero division in print part.

Paul B Mahol onemda at gmail.com
Sun Mar 8 10:27:48 CET 2015


On 3/8/15, Nicolas George <george at nsup.org> wrote:
> L'octidi 18 ventose, an CCXXIII, Martin Vignali a ecrit :
>> +    if (!nb_samples || !s->nb_channels)
>
> Half your test is completely useless, as s->nb_channels can not be zero.
>
> Did you manage tu reproduce the issue it is supposed to fix?

Yes, it gives me floating exception. Looks like uninit() is called
unconditionally.

> Regards,
>
> --
>   Nicolas George
>


More information about the ffmpeg-devel mailing list