[FFmpeg-devel] [PATCH] swresample: reuse DSP functions from avutil

Michael Niedermayer michael at niedermayer.cc
Fri May 12 17:09:11 EEST 2023


On Wed, May 10, 2023 at 04:25:06PM +0200, Paul B Mahol wrote:
> Attached.

>  rematrix.c            |   30 ++++++++++++++++++++++++++++--
>  swresample.c          |    5 +++++
>  swresample_internal.h |    2 ++
>  3 files changed, 35 insertions(+), 2 deletions(-)
> 2de854b7e4bacb3ea469a2fa6495053b679ae779  0001-swresample-reuse-DSP-functions-from-avutil.patch
> From 1f6aded57aab1fd8c6c7ba6fa5261d7979666f66 Mon Sep 17 00:00:00 2001
> From: Paul B Mahol <onemda at gmail.com>
> Date: Wed, 10 May 2023 15:41:01 +0200
> Subject: [PATCH] swresample: reuse DSP functions from avutil
> 
> Improves generic mixing dramatically.

Crashes
libswresample/tests/swresample
TEST: mono->quad, rate:16000->48000, fmt:dblp->dbl
==9257== 
==9257== Process terminating with default action of signal 11 (SIGSEGV)
==9257==  General Protection Fault
==9257==    at 0x15552E: ??? (libavutil/x86/float_dsp.asm:290)
==9257==    by 0x115B2A: swr_convert_internal (swresample.c:768)
==9257==    by 0x116676: swr_convert (swresample.c:889)
==9257==    by 0x11202E: main (swresample.c:355)
==9257== 
==9257== HEAP SUMMARY:
==9257==     in use at exit: 798,232 bytes in 59 blocks
==9257==   total heap usage: 352 allocs, 293 frees, 21,612,392 bytes allocated
==9257== 
==9257== LEAK SUMMARY:
==9257==    definitely lost: 2,992 bytes in 34 blocks
==9257==    indirectly lost: 0 bytes in 0 blocks
==9257==      possibly lost: 0 bytes in 0 blocks
==9257==    still reachable: 795,240 bytes in 25 blocks
==9257==         suppressed: 0 bytes in 0 blocks
==9257== Rerun with --leak-check=full to see details of leaked memory
==9257== 
==9257== For counts of detected and suppressed errors, rerun with: -v
==9257== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)
 
[...]
 
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230512/7c30112f/attachment.sig>


More information about the ffmpeg-devel mailing list