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 63FAC4A454 for ; Thu, 28 Mar 2024 08:17:04 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E1ED368D72C; Thu, 28 Mar 2024 10:17:00 +0200 (EET) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B6E1668C1AA for ; Thu, 28 Mar 2024 10:16:53 +0200 (EET) Authentication-Results: mail0.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=XsVXsThq; dkim-atps=neutral Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 683E5240DAC; Thu, 28 Mar 2024 09:16:53 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id INwsIst5x4iq; Thu, 28 Mar 2024 09:16:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1711613812; bh=EaxqSP5MrNoLMBQ9g5hEkaYIrqIBNg9d2qr9ZxRQkSo=; h=Subject:From:To:Cc:In-Reply-To:References:Date:From; b=XsVXsThq/D3qFrKJp0XtfHP/xToNawc5bJYNL/N/WRQGHl4X795Ys1BYt85TaHySp OwTQacM3Bev2I03ZMXHdmJbv5NW8wQrLyuBJXvt4m6HAhs0lsdmeCcSA+0vdRMHyfD 2918szTdF77DrCLwq/AnEgRqIcTMJryfBszf/sRGGWQk1QMsbx5AlPav6LpTTulU5p eYzZPqWDO6TJDkD3IHAVzsD9OgdE+OCaVGxqZ4MboCkisESfsExx51gw2LtztZWGMb EhBPVCQa3d/GqBDLch9IYpx1nMBSSp1bIQQuW2klL9v5WKJ0SgTh6DaZp17skB2IpM W4FkEbyL5FDgg== Received: from lain.khirnov.net (lain.khirnov.net [IPv6:2001:67c:1138:4306::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "lain.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id D32F42404AF; Thu, 28 Mar 2024 09:16:52 +0100 (CET) Received: by lain.khirnov.net (Postfix, from userid 1000) id AE6161601B9; Thu, 28 Mar 2024 09:16:52 +0100 (CET) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: References: Mail-Followup-To: FFmpeg development discussions and patches , Zhao Zhili Date: Thu, 28 Mar 2024 09:16:52 +0100 Message-ID: <171161381268.7287.9542187500096802249@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH] avcodec/h264_parse: Fix error code in decode_extradata 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: Zhao Zhili 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: Quoting Zhao Zhili (2024-03-26 03:59:00) > From: Zhao Zhili > > --- > libavcodec/h264_parse.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/h264_parse.c b/libavcodec/h264_parse.c > index 3378650fd5..09d3b9dc05 100644 > --- a/libavcodec/h264_parse.c > +++ b/libavcodec/h264_parse.c > @@ -468,7 +468,7 @@ int ff_h264_decode_extradata(const uint8_t *data, int size, H264ParamSets *ps, > int ret; > > if (!data || size <= 0) > - return -1; > + return AVERROR(EINVAL); Ok -- Anton Khirnov _______________________________________________ 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".