From patchwork Fri May 3 21:55:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 48482 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:e68f:b0:1af:836d:81b3 with SMTP id mz15csp68955pzb; Fri, 3 May 2024 14:55:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWz1EqbAQBOxvu0qpAa/+OOMtic0/FCbLLWGZsj4cOLQo2QNXtIP+MGbRPNUdOpgUhwJl9kessVdqev95foXGIRo/EDzBF5geOwBQ== X-Google-Smtp-Source: AGHT+IFD3g6SOGa4xpet1QBCDIcrDCJokPWMmzAF3Kem/OqeAElOpCV3Lzxs3syohMGLmkIx9wAr X-Received: by 2002:a2e:979a:0:b0:2dd:bc53:e80 with SMTP id y26-20020a2e979a000000b002ddbc530e80mr2948427lji.51.1714773343803; Fri, 03 May 2024 14:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714773343; cv=none; d=google.com; s=arc-20160816; b=q7a5OhsN8kRN0ipVBsMSsbwBomtVsC01XRa53EpS8gDaFUksJSL+roVnOThhZvzRyn tV8njQpZ1VFDdlLhBWW+tQKOCcrKpm/exzl/5ZmK8TOOAJc3QFgcs4Dftu3K57DWfM3U faJRGnWMS1aD1MfKyudBHcd1zZn0npkN+KOSasV2sYKEF7GppEMGGDANdv5QmKveSyeU +iXg/lPguceXE7Y2q2CbJ876gzCgDVfCAilLZtwrpZkkgfme4kECMHJoWwgsFyVAsfVq 3y/W04bgr54KkGSeYEgpahB5TeJ2Q0f7oRJqOLV33JekNSBAQh2sGPzKSFxourl+OS9s 5VJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=f7l6mw/e0bpP1O65OzdoTrY993SVQZiS+vQKvlYlHkY=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=YxntJREPS0CRyFeMzY1FSfqHCmxTLnmiTjf1JYXB3R1vQ2l5GGfTvNPAOmiY0+q1Ns LY8LCss4rpjH/yiszHvFDtRaEkWUy34jNmYckBJTXt2ZOduiu1JcupVmmXFvliawtzx/ yX0YPr5IQlYHiezlLC6c53e60nH/ZXnuxokKYfAfIVJFJtDY5mEV/shsPVIesRQB/5h9 cs37ieR+ieGA/9kDqXyrRF+YIrrjGe86/qDWk7dkfwCLxhMcD290vUbfmzkcJbzcYagx gZpezKZqsPVQZhXHMFLcCieePhKiNYOsZ4H39WCUWF59f1Yanspcaa9lX8g4ATI5eTAQ OMzw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=EpOqpMXm; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id gz21-20020a170906f2d500b00a52450cfb88si62317ejb.619.2024.05.03.14.55.43; Fri, 03 May 2024 14:55:43 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=EpOqpMXm; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CA74368D71D; Sat, 4 May 2024 00:55:15 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B03CC68D711 for ; Sat, 4 May 2024 00:55:07 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1CEE3E0009 for ; Fri, 3 May 2024 21:55:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1714773307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QY3zEV4Lx6ZBpaWhtjvXpA0kyHuTzHZjtsX8VvKakc4=; b=EpOqpMXmSMHqN+QYnVsHXl3yMXhKW98ht7is/cp6lbrypx87gC51NAIQwG3icxw1CXTrDv R8/OnxV5+ks4l6yWJcuPfjTo7H6PMawE/2jt9gDLEBuHUt2l7vb4GZuFkdxso9fCui0jlo v1tA5HiDz5kGsEORaXgh8MA5Md2LeA+cDGIctd63CuBWVKh8rSLqDB9clE4t1IIUkknHnS 9IEYYUSDhVbZa4vdn8QXbZZ9BQ83361vq3GJLBZQFQ/tl15zJB3BqGCPtrgJJHjKR5qUjO ekvlw/6vF2SHNN4uDUSXMYLPb+Tox1kE1BTt89vZk3cDiDjIc6EC8pYg6+FJ8w== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 3 May 2024 23:55:01 +0200 Message-ID: <20240503215502.1509887-4-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240503215502.1509887-1-michael@niedermayer.cc> References: <20240503215502.1509887-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 4/5] avcodec/dovi_rpuenc: Initialize bl_compat_id 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 78GzjdF9/Gcy Fixes: CID1596607 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/dovi_rpuenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dovi_rpuenc.c b/libavcodec/dovi_rpuenc.c index 7e0292533bd..c5e452957b5 100644 --- a/libavcodec/dovi_rpuenc.c +++ b/libavcodec/dovi_rpuenc.c @@ -57,7 +57,7 @@ int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx) AVDOVIDecoderConfigurationRecord *cfg; const AVDOVIRpuDataHeader *hdr = NULL; const AVFrameSideData *sd; - int dv_profile, dv_level, bl_compat_id; + int dv_profile, dv_level, bl_compat_id = -1; size_t cfg_size; uint64_t pps;