[FFmpeg-devel] [PATCH] avcodec: reorder MP3 decoder declarations to match MP2 pattern

Lynne dev at lynne.ee
Thu May 22 00:25:57 EEST 2025


On 22/05/2025 06:21, sohzm wrote:
> Fix inconsistent sample format reporting between probing and decoding.
> Previously, avformat_find_stream_info reported fltp format for MP3
> streams but frames were decoded as s16p.
> 
> Fixes ticket/11561
> ---
>   libavcodec/allcodecs.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
> index cd4f6ecd59..329e410aee 100644
> --- a/libavcodec/allcodecs.c
> +++ b/libavcodec/allcodecs.c
> @@ -500,8 +500,8 @@ extern const FFCodec ff_mp2_encoder;
>   extern const FFCodec ff_mp2_decoder;
>   extern const FFCodec ff_mp2float_decoder;
>   extern const FFCodec ff_mp2fixed_encoder;
> -extern const FFCodec ff_mp3float_decoder;
>   extern const FFCodec ff_mp3_decoder;
> +extern const FFCodec ff_mp3float_decoder;
>   extern const FFCodec ff_mp3adufloat_decoder;
>   extern const FFCodec ff_mp3adu_decoder;
>   extern const FFCodec ff_mp3on4float_decoder;

It should be the other way around, the float decoder should be picked first.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xA2FEA5F03F034464.asc
Type: application/pgp-keys
Size: 624 bytes
Desc: OpenPGP public key
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250522/b225cc63/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250522/b225cc63/attachment.sig>


More information about the ffmpeg-devel mailing list