From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 1D5754B037 for ; Wed, 26 Jun 2024 22:48:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8BC1C68D6BD; Thu, 27 Jun 2024 01:48:31 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 92CD368D3FA for ; Thu, 27 Jun 2024 01:48:24 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id D60841BF203; Wed, 26 Jun 2024 22:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1719442104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=AcvDRUzLHdglezOzPwJnGkvbs8iVlCQsWmn3Xon5q1Q=; b=k5id/iaJpJ09+O2DAkMaCnLDcsLEW9fGvOOYOT4Voq0wVHOoU8QnsE8mqRF6bJ2NNir2h/ EDOq0GHEQXXUGx7U6dYlajrO9q7P8WO1dEchVUeFo5lQUBCFPL/F3bqfXwTbjLot/bBMe2 VR+mHDSOXAEd6yFdOtpOTd92mPHGP4N+/LTXjUGXqmCTmgDYrVVa1bywp+KU9PpP18unys 0sPSzf8uoYQcm9+cJqft9zfvD9jGyyrIlPAbyMuqKVMGgR1m4FhSSWGBnwOvTkFuy0kXHa hvbYY9AlYT3FAha6jtkmPIa6zqiQVBdU0523mrosbdjOI7C/nEhkKlkmc1J3cg== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 27 Jun 2024 00:48:22 +0200 Message-ID: <20240626224822.1351769-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH] avcodec/aac/aacdec_usac: Fix error code for NULL AACDecContext X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andreas Rheinhardt Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Found-by: Andreas Rheinhardt Signed-off-by: Michael Niedermayer --- libavcodec/aac/aacdec_usac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.45.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".