diff mbox series

[FFmpeg-devel] avcodec/aac/aacdec_usac: Fix error code for NULL AACDecContext

Message ID 20240626224822.1351769-1-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel] avcodec/aac/aacdec_usac: Fix error code for NULL AACDecContext | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Michael Niedermayer June 26, 2024, 10:48 p.m. UTC
Found-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/aac/aacdec_usac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer June 26, 2024, 10:50 p.m. UTC | #1
On Thu, Jun 27, 2024 at 12:48:22AM +0200, Michael Niedermayer wrote:
> Found-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> 
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  libavcodec/aac/aacdec_usac.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

patch withdrawn, information posted 2 minutes later says it is supported in LATM


[...]
diff mbox series

Patch

diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c
index 4856c1786b7..3250fd71f6f 100644
--- a/libavcodec/aac/aacdec_usac.c
+++ b/libavcodec/aac/aacdec_usac.c
@@ -349,7 +349,7 @@  int ff_aac_usac_config_decode(AACDecContext *ac, AVCodecContext *avctx,
     uint8_t layout_map[MAX_ELEM_ID*4][3] = { 0 };
 
     if (!ac)
-        return AVERROR_PATCHWELCOME;
+        return AVERROR_INVALIDDATA;
 
     memset(usac, 0, sizeof(*usac));