Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#11495 closed defect (fixed)

speex: native decoder mishandling 32000 hz files

Reported by: Tristan Matthews Owned by: James Almer <jamrial@gmail.com>
Priority: important Component: avcodec
Version: git-master Keywords: speex
Cc: Tristan Matthews Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

The libavcodec native speex decoder is presently garbling (for lack of a better word) the decoding of 32000 hz (ultra-wideband) speex files. The libspeex decoder is not.

To reproduce:

ffmpeg -i https://people.videolan.org/~tmatth/samples/uwb_male_speex.spx borked.wav

vs.

ffmpeg -acodec libspeex -i https://people.videolan.org/~tmatth/samples/uwb_male_speex.spx working.wav

This is happening with git ce1cec673e5366c0ecf8bae970ae84321b92f323 as well as the distro version I tested (7.0.2-3ubuntu1)

speexdec (from libspeex) and VLC (when using its libspeex module) decode the file without issue.

Change History (2)

comment:1 by James, 17 months ago

Priority: normalimportant
Resolution: fixed
Status: newclosed

comment:2 by James Almer <jamrial@gmail.com>, 17 months ago

Owner: set to James Almer <jamrial@gmail.com>

In c14b837d/ffmpeg:

speexdec: fix framesize for ultra-wideband

This matches how the libspeex decoder is calculating frame size (except in clamp form).

Fixes #11495

Signed-off-by: James Almer <jamrial@gmail.com>

Note: See TracTickets for help on using tickets.