[FFmpeg-trac] #9049(avfilter:new): astats undefined behaviour on float pcm having peaks much greater than 1.0
FFmpeg
trac at avcodec.org
Mon Jan 4 04:35:02 EET 2021
#9049: astats undefined behaviour on float pcm having peaks much greater than 1.0
--------------------------------------+------------------------------------
Reporter: danadam | Owner:
Type: defect | Status: new
Priority: important | Component: avfilter
Version: git-master | Resolution:
Keywords: astats crash | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+------------------------------------
Comment (by danadam):
> please provide the ffmpeg command line running inside gdb including its
complete, uncut console output and the backtrace etc.
Added gdb-full.out.txt.
> please attach an input file that allows to reproduce.
Added loud2.wav.
> I don't think a sample file is needed, this crash can be reproduced with
a single command line:
Yep
> Unfortunately valgrind and ffmpeg here are fine. Build with clang.
True. If I read things correctly then `gcc` optimizes more aggressively
than `clang` and removes the `a < amin` check in `av_clip()` function.
Presumably because `FFABS(nd) * HISTOGRAM_MAX` cannot be negative.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9049#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list