Message ID | CAPYw7P7pwuZ2BDkgSWLjCQUaHDC3ZKi028SEXi1-og18viGtSA@mail.gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avcodec/mpegaudiodec_common: fix values for 24k sample rate | expand |
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 |
On 10/17/22, Paul B Mahol <onemda@gmail.com> wrote: > Patch attached. > will apply soon
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
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