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 0CF8C46688 for ; Thu, 29 Jun 2023 18:19:21 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C287068C396; Thu, 29 Jun 2023 21:19:19 +0300 (EEST) Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 536B768C371 for ; Thu, 29 Jun 2023 21:19:19 +0300 (EEST) Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-38e04d1b2b4so676794b6e.3 for ; Thu, 29 Jun 2023 11:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688062757; x=1690654757; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IM2hKEi2RbYhsho5sfZynIu532cvLzXM+eBJkiRmtZQ=; b=LNygE5ZvoApTwJez2gjCOAu439Hq0LliJ42gSh/aC7Duj3wIbKOObhTjYWpJF9qDa6 qAn8itm5XRgp8o5yXxnLAJTkNjYHm8TD5OHuCH/wkcHGA+GdXyGodqs1wYCMoJA37sAj 6xXh4KT5BDuhoUvGbNw/sNIKyFc6QirLLvMZrrURKCkyYtT3gwsDfXCFOfUvxDHUkg8h HGZV+cRkRwxeAzwxeYHjyIoyji/ejBIB26BTcxqy04SbbOTrODOYEpQkPdWyVG75D1g2 XiB4hOd1DWkSSwBIvOFvXsdbqZU/13ivkPaQwc0aCeNCelKiJyUani1FB44+ahx3S7fm vsgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688062757; x=1690654757; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IM2hKEi2RbYhsho5sfZynIu532cvLzXM+eBJkiRmtZQ=; b=NVEVCQqrGugepqmKDLI45kR17Mqj6hnRozhxOk9hrHm7gfCpzvoDLnVr9uU/aq7Ace 0gCsI5ij/eeWW5dNprB3Pebh5tWmCOa5DIG40MFHA2OA2jkN1ZPMPjL3bXiF4GyKfAXQ 74hSBr2iSq4N7UXLT8D8E9asNueFIzdR3lGdzV1L6pD1zJTuQ7x/6nimK7fihd6mJhGW Wq217Kn6FUjgj0Z5XG4LZTazqmbfPxfXoq5tNXPa0UVemA9r6nDmqdfzOrImyt/ZBKLL 7vd5KFd6UBFeqDbU0ce3pRmRBDP65i6KfLn1KTRPwyXHjzxeDRz/RNOGxtKJtNXXrPPB pxeQ== X-Gm-Message-State: AC+VfDwtXl55R7cZVVs8C/IoC4M4QS7Ijog4ax8SGs+cIPMv15a0nBnX fs8aOSKCXzYbk0r2kficCCbJiUqvHyM= X-Google-Smtp-Source: ACHHUZ7DVXbd1iO6vrlZDrplvidG1MiW3n02f3wLWJbkXbXzieayUYN38oPVaMMd7mykZANEdd5bfQ== X-Received: by 2002:a05:6808:f8d:b0:3a1:f3d6:4e7a with SMTP id o13-20020a0568080f8d00b003a1f3d64e7amr289019oiw.13.1688062757391; Thu, 29 Jun 2023 11:19:17 -0700 (PDT) Received: from [192.168.0.12] (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id a12-20020a056808128c00b003a371c611f6sm484425oiw.18.2023.06.29.11.19.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Jun 2023 11:19:17 -0700 (PDT) Message-ID: Date: Thu, 29 Jun 2023 15:19:22 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: From: James Almer In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH 2/4] avcodec/vvc_parser: Constify parser 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 6/29/2023 3:19 PM, Andreas Rheinhardt wrote: > The discrepancy between the definition and the declaration > in parsers.c is actually UB. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/vvc_parser.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/vvc_parser.c b/libavcodec/vvc_parser.c > index 4f7657f7ab..f350fe70a9 100644 > --- a/libavcodec/vvc_parser.c > +++ b/libavcodec/vvc_parser.c > @@ -571,7 +571,7 @@ static void vvc_parser_close(AVCodecParserContext *s) > av_freep(&ctx->pc.buffer); > } > > -AVCodecParser ff_vvc_parser = { > +const AVCodecParser ff_vvc_parser = { > .codec_ids = { AV_CODEC_ID_VVC }, > .priv_data_size = sizeof(VVCParserContext), > .parser_init = vvc_parser_init, LGTM. _______________________________________________ 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".