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 AA1F446386 for ; Thu, 15 Jun 2023 15:19:20 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 12E8568C538; Thu, 15 Jun 2023 18:19:05 +0300 (EEST) Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B170E68C4F3 for ; Thu, 15 Jun 2023 18:18:57 +0300 (EEST) Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-1a6b7060862so3193730fac.2 for ; Thu, 15 Jun 2023 08:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686842336; x=1689434336; 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=nPd87cI6kjDjqKY/Hz1YbDcaNLifNLxlf504zVPixZM=; b=A+QdJdE3dUyMvM0RX0uNAISdcogUVOymXXanx8vTE3tF7VCMoBF2GUwTFBK8TPeB2N cXu+fUjtwCTCM1SqpOpA4KuREcLbopAmBEW9fEazIVJps9AjuMN1chVi66/82e/I6X4L X6rdIWHpUX5z+dK4PfsK8/zaazBgzg9g10Zd0Bl1BUu/TeorYHe97Y7DFjy9tp7wGRuJ pEe9eAX20zG6xRSiQVYz+kDKTTE/3KiQh+zrtPdCsjJzPl18AwCt8S31XbuxLZEJBT+I A4E9H0uVjxirv+J4aDYeCg3GHaDOZ0nuE4X7E3a0Pp0AYFJM/4Wq55XdAUn8lTeZeRIW IjAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686842336; x=1689434336; 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=nPd87cI6kjDjqKY/Hz1YbDcaNLifNLxlf504zVPixZM=; b=e0ash9MhSYuN8sMWbPz03jVQpU47V93apQdpPqrqecdeVex/CDtZrpEBd6hsFf2kCO iftodpzESwTT7gqDyT6kO+DEEtLQ3SzMQRO+8w1IESY4RWfzXNZ2g62qVBN73E4U5Yg+ xUxWCddfSjLQZhEeJ3ZShsqL8k9bvREA8OZvCSfeIcSYBMK9ojKVj9xoUc1NjZ2wJtdi faWy/k8c8Y1TOgyXyT3ZS13OR91EZjxNamYgY86tbWJvm8gJJPFBzHZC+RrB7nAWUA/l FZA7DiDBLRvlz2RIlydp7lCGVVmZvS9Vq+jrMtKbu/QDZ8c+zao0winVZNK45LJxeut6 16mg== X-Gm-Message-State: AC+VfDzet4nHXHQidf3lazV3ePs7DRqdHYX2U+ACnJW4tskflYKk9zNg oIegPX7U3earn4KqRggZTVX3kZbT06Q= X-Google-Smtp-Source: ACHHUZ7kpTNwask1sQ03InPbgIOCKEAWPsh0dKFA63vQaKEYSTTaK+8ahl0ZwQt+qA4GmAXrSshKFg== X-Received: by 2002:a05:6870:628b:b0:19e:cfe6:8773 with SMTP id s11-20020a056870628b00b0019ecfe68773mr12401470oan.28.1686842334650; Thu, 15 Jun 2023 08:18:54 -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.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 08:18:54 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Thu, 15 Jun 2023 12:18:26 -0300 Message-ID: <20230615151836.50535-2-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 02/11] avcodec/evc_parser: remove superfluous memset calls 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: The entire EVCParserContext will be zeroed during allocation. Signed-off-by: James Almer --- libavcodec/evc_parser.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libavcodec/evc_parser.c b/libavcodec/evc_parser.c index 7528fb13db..639dcbd135 100644 --- a/libavcodec/evc_parser.c +++ b/libavcodec/evc_parser.c @@ -197,17 +197,6 @@ static int evc_parse(AVCodecParserContext *s, AVCodecContext *avctx, return next; } -static int evc_parser_init(AVCodecParserContext *s) -{ - EVCParserContext *ctx = s->priv_data; - - memset(ctx->sps, 0, sizeof(EVCParserSPS *)*EVC_MAX_SPS_COUNT); - memset(ctx->pps, 0, sizeof(EVCParserPPS *)*EVC_MAX_PPS_COUNT); - memset(ctx->slice_header, 0, sizeof(EVCParserSliceHeader *)*EVC_MAX_PPS_COUNT); - - return 0; -} - static void evc_parser_close(AVCodecParserContext *s) { EVCParserContext *ctx = s->priv_data; @@ -229,7 +218,6 @@ static void evc_parser_close(AVCodecParserContext *s) const AVCodecParser ff_evc_parser = { .codec_ids = { AV_CODEC_ID_EVC }, .priv_data_size = sizeof(EVCParserContext), - .parser_init = evc_parser_init, .parser_parse = evc_parse, .parser_close = evc_parser_close, }; -- 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".