diff mbox series

[FFmpeg-devel] avcodec/mpegaudiodec_common: fix values for 24k sample rate

Message ID CAPYw7P7pwuZ2BDkgSWLjCQUaHDC3ZKi028SEXi1-og18viGtSA@mail.gmail.com
State New
Headers show
Series [FFmpeg-devel] avcodec/mpegaudiodec_common: fix values for 24k sample rate | expand

Checks

Context Check Description
yinshiyou/configure_loongarch64 warning Failed to apply patch
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Paul B Mahol Oct. 17, 2022, 8:46 a.m. UTC
Patch attached.

Comments

Paul B Mahol Oct. 18, 2022, 7:10 a.m. UTC | #1
On 10/17/22, Paul B Mahol <onemda@gmail.com> wrote:
> Patch attached.
>

will apply soon
Andreas Rheinhardt Oct. 18, 2022, 7:56 a.m. UTC | #2
Paul B Mahol:
> diff --git a/libavcodec/mpegaudiodec_common.c b/libavcodec/mpegaudiodec_common.c
> index 71fc2e7c81..5fcb39b325 100644
> --- a/libavcodec/mpegaudiodec_common.c
> +++ b/libavcodec/mpegaudiodec_common.c
> @@ -369,7 +369,7 @@ const uint8_t ff_band_size_long[9][22] = {
>  { 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
>    20, 24, 28, 32, 38, 46, 52, 60, 68, 58, 54, }, /* 22050 */
>  { 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
> -  18, 22, 26, 32, 38, 46, 52, 64, 70, 76, 36, }, /* 24000 */
> +  18, 22, 26, 32, 38, 46, 54, 62, 70, 76, 36, }, /* 24000 */
>  { 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
>    20, 24, 28, 32, 38, 46, 52, 60, 68, 58, 54, }, /* 16000 */
>  { 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,

Can you add a pointer to the exact table in the spec on which this table
is based?

- Andreas
diff mbox series

Patch

From 5a068e66a9666a0a1c22c68315ec116c04e9c129 Mon Sep 17 00:00:00 2001
From: Paul B Mahol <onemda@gmail.com>
Date: Mon, 17 Oct 2022 10:46:34 +0200
Subject: [PATCH] avcodec/mpegaudiodec_common: fix values for 24k sample rate

Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavcodec/mpegaudiodec_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegaudiodec_common.c b/libavcodec/mpegaudiodec_common.c
index 71fc2e7c81..5fcb39b325 100644
--- a/libavcodec/mpegaudiodec_common.c
+++ b/libavcodec/mpegaudiodec_common.c
@@ -369,7 +369,7 @@  const uint8_t ff_band_size_long[9][22] = {
 { 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
   20, 24, 28, 32, 38, 46, 52, 60, 68, 58, 54, }, /* 22050 */
 { 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
-  18, 22, 26, 32, 38, 46, 52, 64, 70, 76, 36, }, /* 24000 */
+  18, 22, 26, 32, 38, 46, 54, 62, 70, 76, 36, }, /* 24000 */
 { 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
   20, 24, 28, 32, 38, 46, 52, 60, 68, 58, 54, }, /* 16000 */
 { 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
-- 
2.37.2