From patchwork Sat May 7 09:36:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aman Karmani X-Patchwork-Id: 35631 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp2088677pzb; Sat, 7 May 2022 02:38:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2JS255Y06AcpB9i6EbANFLNCSNj93pQtYdxRu2Hf5KS4gUrqWnFleubgf3UGvM7qkKLez X-Received: by 2002:a17:907:7248:b0:6f4:34e4:fc63 with SMTP id ds8-20020a170907724800b006f434e4fc63mr6770334ejc.553.1651916297160; Sat, 07 May 2022 02:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651916297; cv=none; d=google.com; s=arc-20160816; b=Kr+l3G28BiujjR9U9yksbQ5xQ7SfaVw7b5or8cgolbt3FNKpvhMWJtppBIwnpt+PsI IaCPCxDZbdZ5BCxUw7GZ3iMcfP5qJS+/fW4TBzkz/0p0FwNH41qB3MKBLnOmuxzjr/M/ YUeX9XhXCPUqSUK+TlNDKEcs9e6HTEBuWDDDR0LJutNBli/ReCPdXtL4kg5QttkcbO0F WVDtOU4UKozRw4hcoaF5KdcFjz0FrIpGVsl5RRfR0CqZzQgGnEs+3hhIikfKdh47brbc sSEKYiBbSxw1F8NcdrEtVtdM0UEChxS3gdltaaeKpUdRUtNbAQR5v2MlT6jnLVTbe1C1 zdbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:to:mime-version:fcc:date:references :in-reply-to:message-id:from:dkim-signature:delivered-to; bh=jVpqAudlYLkjPxg5NrcJFsvgdodVb6JbjxG/tpYA5to=; b=P62XlmFQq+uw3xDdN1h6ez2MzFq42JxGXnAmdI1k2h18FISnkJA8lFbJTLa+OQGXhC vjk98uOK0ytYD8dPVEBfehUF0Gi+6bWQC4T/eRH2AqzuLGzhdg/B/IYy6qt2dKVe11z+ rI9FNHppOes1R4MJhaDY2iHrYz1by8pYQ/oihrz0fO94XN54Y4C/m1uduJu4o0pEnhMl kgSehxlUB+VEtNHHA6MEOcMaMfUeye7hD040ycgSoJcYVxaVb1ot/ZVA8MUeXaAH63vC 3wmeJkmecfEk/kMsqlruDld2dekcP7lurmslVD8BTjd8+n+7VADZPXKbWlsPHFAjyM0i Q+rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=lN9oXWak; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id pj19-20020a170906d79300b006e86e4fd0c0si6731181ejb.819.2022.05.07.02.38.16; Sat, 07 May 2022 02:38:17 -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=@gmail.com header.s=20210112 header.b=lN9oXWak; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0567F68B3F5; Sat, 7 May 2022 12:37:05 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 973A068B3C0 for ; Sat, 7 May 2022 12:36:54 +0300 (EEST) Received: by mail-pf1-f175.google.com with SMTP id bo5so8199659pfb.4 for ; Sat, 07 May 2022 02:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:in-reply-to:references:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=lxaO32panAgOR2/GGkgq3pwb4NzbYLijZv8SCV6kQfo=; b=lN9oXWaknY5Fo2Qep6tan1HuaSWpHbuWRg3TCOZ7XKiMkVKfdJF/7WxAsQX80Z28sG FxEZjtzQB9J2Bqks4Cc4Li1DSVbHffzJ90hzTcYQmVK+ucLZUmh6UkAKH0JPBhslRtZC cutU5EqLaBvBdUP6Kj7ZsPv4iJ6KUQbpvis4MKj4JBYXhWhKmjsbhdWrqCyDm1AZxNd8 hFe4YDW+SzmcKG+BNRk5lD5Dw58s3ZArVQZfWKwGiyY4OyyKF/b8W6uS6Fp+o0bTdjTR I1UB6/C13o+0oCgst0svmeR5urRgpyHuDQXljgeEvLcWr3wEzK/8oyuk0jg+qg0hSnXB kSNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:in-reply-to:references:date :subject:fcc:content-transfer-encoding:mime-version:to:cc; bh=lxaO32panAgOR2/GGkgq3pwb4NzbYLijZv8SCV6kQfo=; b=WrWYn1U5W3dt6lFgz+v6ZqnaHz7sCzfzOxzBR5dqW5H0/LVEFTzWcJJglWXOjN13Rh YjuUTinh13THnl1hCle4ZMxRakl10TxN/X0PhkiHPIIiNu/jzkrolPxOFth1BXEwnYfV AbwkbO5s+Hx3wgSSLbdwqBnBbbTFmLEhzlisCYNUqgZjXxKR492ySNspXw+fSoZooqOC 0/abXNoP/LWK/mNO41mmipWylxZXkEN80YaLjoIMuNVOQMigApVNhFmp2adYbuEcM9h1 j4wa+IFFGZVT1FpsbrfndvyI6hCuEMuNNtS9U/PvU/7cRveilpnGFzDSLArKMB6Y1QJT anyA== X-Gm-Message-State: AOAM533lWOrw4GmYrnrnz5KLdRAV/PMzx3sGHAwyq99/iSdgvIc7B1hA 96uZ6JVGUhNjIjyTOK11eeofv16xaucHtw== X-Received: by 2002:a05:6a00:2484:b0:50e:68e:d5a5 with SMTP id c4-20020a056a00248400b0050e068ed5a5mr7629380pfv.47.1651916213045; Sat, 07 May 2022 02:36:53 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id t11-20020a1709028c8b00b0015e8d4eb251sm3199465plo.155.2022.05.07.02.36.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 May 2022 02:36:52 -0700 (PDT) From: softworkz X-Google-Original-From: softworkz Message-Id: <3bee11e40f53de38a52871b0ebd2f4a442fc8926.1651916204.git.ffmpegagent@gmail.com> In-Reply-To: References: Date: Sat, 07 May 2022 09:36:39 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v2 06/11] libavformat/asfdec: remove unused parameters 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: softworkz Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: eQo3L9Ngthy0 From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 4c898ab3f2..e87c78cd6c 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -299,7 +299,7 @@ finish: avio_seek(s->pb, off + len, SEEK_SET); } -static int asf_read_file_properties(AVFormatContext *s, int64_t size) +static int asf_read_file_properties(AVFormatContext *s) { ASFContext *asf = s->priv_data; AVIOContext *pb = s->pb; @@ -494,7 +494,7 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size) return 0; } -static int asf_read_ext_stream_properties(AVFormatContext *s, int64_t size) +static int asf_read_ext_stream_properties(AVFormatContext *s) { ASFContext *asf = s->priv_data; AVIOContext *pb = s->pb; @@ -554,7 +554,7 @@ static int asf_read_ext_stream_properties(AVFormatContext *s, int64_t size) return 0; } -static int asf_read_content_desc(AVFormatContext *s, int64_t size) +static int asf_read_content_desc(AVFormatContext *s) { AVIOContext *pb = s->pb; uint32_t len1, len2, len3, len4, len5; @@ -573,7 +573,7 @@ static int asf_read_content_desc(AVFormatContext *s, int64_t size) return 0; } -static int asf_read_ext_content_desc(AVFormatContext *s, int64_t size) +static int asf_read_ext_content_desc(AVFormatContext *s) { AVIOContext *pb = s->pb; ASFContext *asf = s->priv_data; @@ -619,7 +619,7 @@ static int asf_read_ext_content_desc(AVFormatContext *s, int64_t size) return 0; } -static int asf_read_language_list(AVFormatContext *s, int64_t size) +static int asf_read_language_list(AVFormatContext *s) { AVIOContext *pb = s->pb; ASFContext *asf = s->priv_data; @@ -639,7 +639,7 @@ static int asf_read_language_list(AVFormatContext *s, int64_t size) return 0; } -static int asf_read_metadata(AVFormatContext *s, int64_t size) +static int asf_read_metadata(AVFormatContext *s) { AVIOContext *pb = s->pb; ASFContext *asf = s->priv_data; @@ -693,7 +693,7 @@ static int asf_read_metadata(AVFormatContext *s, int64_t size) return 0; } -static int asf_read_marker(AVFormatContext *s, int64_t size) +static int asf_read_marker(AVFormatContext *s) { AVIOContext *pb = s->pb; ASFContext *asf = s->priv_data; @@ -772,21 +772,21 @@ static int asf_read_header(AVFormatContext *s) if (gsize < 24) return AVERROR_INVALIDDATA; if (!ff_guidcmp(&g, &ff_asf_file_header)) { - ret = asf_read_file_properties(s, gsize); + ret = asf_read_file_properties(s); } else if (!ff_guidcmp(&g, &ff_asf_stream_header)) { ret = asf_read_stream_properties(s, gsize); } else if (!ff_guidcmp(&g, &ff_asf_comment_header)) { - asf_read_content_desc(s, gsize); + asf_read_content_desc(s); } else if (!ff_guidcmp(&g, &ff_asf_language_guid)) { - asf_read_language_list(s, gsize); + asf_read_language_list(s); } else if (!ff_guidcmp(&g, &ff_asf_extended_content_header)) { - asf_read_ext_content_desc(s, gsize); + asf_read_ext_content_desc(s); } else if (!ff_guidcmp(&g, &ff_asf_metadata_header)) { - asf_read_metadata(s, gsize); + asf_read_metadata(s); } else if (!ff_guidcmp(&g, &ff_asf_metadata_library_header)) { - asf_read_metadata(s, gsize); + asf_read_metadata(s); } else if (!ff_guidcmp(&g, &ff_asf_ext_stream_header)) { - asf_read_ext_stream_properties(s, gsize); + asf_read_ext_stream_properties(s); // there could be an optional stream properties object to follow // if so the next iteration will pick it up @@ -796,7 +796,7 @@ static int asf_read_header(AVFormatContext *s) avio_skip(pb, 6); continue; } else if (!ff_guidcmp(&g, &ff_asf_marker_header)) { - asf_read_marker(s, gsize); + asf_read_marker(s); } else if (avio_feof(pb)) { return AVERROR_EOF; } else {