[FFmpeg-devel] [PATCH] avcodec: Extend fft to size 2^17

Paul B Mahol onemda at gmail.com
Fri Mar 4 11:21:23 CET 2016


On 3/4/16, Michael Niedermayer <michael at niedermayer.cc> wrote:
> Hi
>
> patch to extend fft is attached (my git-send email atm doesnt work
> thanks to my ISP)
>
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> I know you won't believe me, but the highest form of Human Excellence is
> to question oneself and others. -- Socrates
>

This crashes whenever I tried to use it with sofalizer/afftfilt:

==24326== Jump to the invalid address stated on the next line
==24326==    at 0xEF83490005E6E2B8: ???
==24326==    by 0x5F4BF5F: ff_fft_calc_avx (fft.asm:562)
==24326==    by 0x508AC34: filter_frame (af_afftfilt.c:242)
==24326==    by 0x50C422D: ff_filter_frame_framed (avfilter.c:1123)
==24326==    by 0x50C576D: ff_filter_frame (avfilter.c:1221)
==24326==    by 0x50C9D4A: request_frame (buffersrc.c:450)
==24326==    by 0x50C98A9: av_buffersrc_add_frame_internal (buffersrc.c:239)
==24326==    by 0x50C9635: av_buffersrc_add_frame_flags (buffersrc.c:164)
==24326==    by 0x421F8B: decode_audio (ffmpeg.c:2046)
==24326==    by 0x421F8B: process_input_packet (ffmpeg.c:2325)
==24326==    by 0x41E047: process_input (ffmpeg.c:3998)
==24326==    by 0x41E047: transcode_step (ffmpeg.c:4086)
==24326==    by 0x41E047: transcode (ffmpeg.c:4140)
==24326==    by 0x419331: main (ffmpeg.c:4331)
==24326==  Address 0xef83490005e6e2b8 is not stack'd, malloc'd or
(recently) free'd
==24326==
==24326==
==24326== Process terminating with default action of signal 11 (SIGSEGV)
==24326==  Bad permissions for mapped region at address 0xEF83490005E6E2B8
==24326==    at 0xEF83490005E6E2B8: ???
==24326==    by 0x5F4BF5F: ff_fft_calc_avx (fft.asm:562)
==24326==    by 0x508AC34: filter_frame (af_afftfilt.c:242)
==24326==    by 0x50C422D: ff_filter_frame_framed (avfilter.c:1123)
==24326==    by 0x50C576D: ff_filter_frame (avfilter.c:1221)
==24326==    by 0x50C9D4A: request_frame (buffersrc.c:450)
==24326==    by 0x50C98A9: av_buffersrc_add_frame_internal (buffersrc.c:239)
==24326==    by 0x50C9635: av_buffersrc_add_frame_flags (buffersrc.c:164)
==24326==    by 0x421F8B: decode_audio (ffmpeg.c:2046)
==24326==    by 0x421F8B: process_input_packet (ffmpeg.c:2325)
==24326==    by 0x41E047: process_input (ffmpeg.c:3998)
==24326==    by 0x41E047: transcode_step (ffmpeg.c:4086)
==24326==    by 0x41E047: transcode (ffmpeg.c:4140)
==24326==    by 0x419331: main (ffmpeg.c:4331)
==24326==
==24326== HEAP SUMMARY:
==24326==     in use at exit: 10,552,359 bytes in 2,983 blocks
==24326==   total heap usage: 4,458 allocs, 1,475 frees, 11,530,798
bytes allocated
==24326==
==24326== LEAK SUMMARY:
==24326==    definitely lost: 0 bytes in 0 blocks
==24326==    indirectly lost: 0 bytes in 0 blocks
==24326==      possibly lost: 1,680 bytes in 5 blocks
==24326==    still reachable: 10,550,679 bytes in 2,978 blocks
==24326==         suppressed: 0 bytes in 0 blocks
==24326== Rerun with --leak-check=full to see details of leaked memory
==24326==
==24326== For counts of detected and suppressed errors, rerun with: -v
==24326== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Killed

Setting cpuflags to 0 gives output with heavy artifacts.


More information about the ffmpeg-devel mailing list