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 65B024638E for ; Thu, 15 Jun 2023 15:19:29 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1012F68C54B; Thu, 15 Jun 2023 18:19:06 +0300 (EEST) Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D578268C51F for ; Thu, 15 Jun 2023 18:18:58 +0300 (EEST) Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-1a9ae7cc01dso382428fac.3 for ; Thu, 15 Jun 2023 08:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686842337; x=1689434337; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=oF++oYnnVmm+WHeo9GIDhNb8Zg7s+c8f4/mXg+QaBMg=; b=Thr5q4rjx/Fqd+4LbQbn8BFfhdUBUMYwvFJr3f2YhqXqjVtJoyYa8U+s4GtZlV+HJG 7OCGXGvnt0a2BRnFIFPf6drMWbGNV53HgNmIhmUWUwi5zrvIaDaAPOxoNQzae0yV826t 5zsuE32HWghqwdFZH9ISA8LXkha2eWmeEKxPna8EFZ8hVpt6UxLPZUB8O1oSVWTUdOoL lYQ5DIBpq746nnVPWrC6cfQ50RhqLxXssXqoSp7ELFL1OyrqWXkOl9aKWbRk3OrIYfIa 5j/CQaTv/lnmosev3G2HiU1PO8Rnxwd4qYvtPRUmi4qNEQB1dgP/W+7i1iAH1WYAgvTC w1lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686842337; x=1689434337; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oF++oYnnVmm+WHeo9GIDhNb8Zg7s+c8f4/mXg+QaBMg=; b=WMlDKVDbC3rm+DKdK9FEctuVn5jxaT73PwDrgfIW6EWob2tYWu6j/FKNiodrAILyyU NFSVrOVYwc71sYpjdGRQBbTczNntaKgEDD4dux4fy+WRJPSiv2VbBCtHcHvv/kro8X4u lqqUXXN5cChAF+SoeTNGfexQpzSOXiibkPBUSjWy3yKSxEXQcBb/Vt81MQOhHtipkzxm J1jdUykmE57/H++y7lApbX2uxdFiB7Q/LnQtz/FuEyjQmtzpsatukHRASPY+j+/QN0ky G8brdR1pE9ETVZcH0PP4kdYzN+7osb/D81fX/tJNSHv6Hx0LWJ2wMJ68XRK5MVRlCSdV Znhw== X-Gm-Message-State: AC+VfDwMKmbB8ca2Et4dPEFd4lt++oFDbUNuyIL1htKApU8jzvAxTtP9 tCOtn7oK7K8ufOZ/EflFJs8ddkwa0xY= X-Google-Smtp-Source: ACHHUZ4fafPqFVK0jdgK7hciRZIbUgMLXCFaVCMEA4ciXyH5mlwTQDjxZNjJSiVCbzUPztzvGKrbyA== X-Received: by 2002:a05:6870:5b2f:b0:1a6:98de:e458 with SMTP id ds47-20020a0568705b2f00b001a698dee458mr8810311oab.8.1686842337065; Thu, 15 Jun 2023 08:18:57 -0700 (PDT) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id ve17-20020a0568710c1100b001a6a3f99691sm4748405oab.27.2023.06.15.08.18.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 08:18:56 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Thu, 15 Jun 2023 12:18:28 -0300 Message-ID: <20230615151836.50535-4-jamrial@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230615151836.50535-1-jamrial@gmail.com> References: <20230615151836.50535-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 04/11] avcodec/evc_parse: zero sps, pps and sh structs 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-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: Otherwise stale values may remain in place. Signed-off-by: James Almer --- libavcodec/evc_parse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c index 68f0d31f96..f8a4ca3e07 100644 --- a/libavcodec/evc_parse.c +++ b/libavcodec/evc_parse.c @@ -200,6 +200,8 @@ EVCParserSPS *ff_evc_parse_sps(EVCParserContext *ctx, const uint8_t *bs, int bs_ } sps = ctx->sps[sps_seq_parameter_set_id]; + memset(sps, 0, sizeof(*sps)); + sps->sps_seq_parameter_set_id = sps_seq_parameter_set_id; // the Baseline profile is indicated by profile_idc eqal to 0 @@ -360,6 +362,7 @@ EVCParserPPS *ff_evc_parse_pps(EVCParserContext *ctx, const uint8_t *bs, int bs_ } pps = ctx->pps[pps_pic_parameter_set_id]; + memset(pps, 0, sizeof(*pps)); pps->pps_pic_parameter_set_id = pps_pic_parameter_set_id; @@ -440,6 +443,7 @@ EVCParserSliceHeader *ff_evc_parse_slice_header(EVCParserContext *ctx, const uin } sh = ctx->slice_header[slice_pic_parameter_set_id]; + memset(sh, 0, sizeof(*sh)); pps = ctx->pps[slice_pic_parameter_set_id]; if(!pps) -- 2.41.0 _______________________________________________ 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".