From patchwork Fri Jan 7 09:16:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zane van Iperen X-Patchwork-Id: 33152 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp218512iog; Fri, 7 Jan 2022 01:16:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvLv6JqcC9PY1B5lmO9+gvyxZMHocGw/fx9mQw6RUgfMRYrp71LC4Wz44YR353HoUO9CGq X-Received: by 2002:a17:907:3d88:: with SMTP id he8mr51766284ejc.239.1641547014663; Fri, 07 Jan 2022 01:16:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641547014; cv=none; d=google.com; s=arc-20160816; b=vyt5X+aY+yK0gW72gI3G0aa8W2op2tKU/m5vmlGJyszQClqzVJrFUpmcPS42R/3JHs qjvsxaUrNHryFSBHs3Z3QOb4EBhFkajJPA3+HKrj+Z6kk21bRJ+HZkPe6MJxyQIfHNSb fX2dyQXXgbfg0keUBmmjvt6gTQd3mpYUXkUU5+UWTqcduArWTzVNOHxHmVFyeplcDSlX tXmqmy+wNZuaErIDu9voycWS1SaEXkehdA6FRe4sBcl+4/4/BolIdT0JPjNnRICiDLfc RHvOubSbsQ5I5ZHhjUyUY2JB6iVERXejwBXLonomF+oJ54WPkH9UdmWvVIyyBH8XAqz6 F2Gg== 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:message-id:date:to:from :delivered-to; bh=OLzUv+sQ5Y/hCZb7+5VXYVpVvFw2bHvwMDDiSuFbyXo=; b=inRDWMC7+XOmkZytP60uvBnd3jdvnAj5Tqgbh/KwN+sOd5QSD7Cz0+5DyxAY6NyOa2 y64Q/I7MgdPTYzdNJwArMgZeTmnLJN5gguU+FbiAhgP8gVHtSOZQeNeuu/to6GjIQ6/z XfQ2uP1wKRuvEJ+e+Y2INYTDWHtpjK6W43oiw7rlx6lTCDokZHJz5QsHq6VK3ZhL0ny9 I2nUq90Pn4VkQxRw7pVd+0VixA0xe7sNzPOBuLVtKwy3+sPycLJ55EAWBRso4AEsKif9 EbdTULQSoctRayjJ2GhEeBC5gIO/tbzNE87zy2M0mUy0RrVk+CNjGk+DPprEnNZGUS3H oL8g== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=zanevaniperen.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id w15si2432278ejz.710.2022.01.07.01.16.47; Fri, 07 Jan 2022 01:16:54 -0800 (PST) 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; 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=NONE dis=NONE) header.from=zanevaniperen.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5750F68A7DE; Fri, 7 Jan 2022 11:16:44 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1C42668A1B9 for ; Fri, 7 Jan 2022 11:16:37 +0200 (EET) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Zane van Iperen To: ffmpeg-devel@ffmpeg.org Date: Fri, 7 Jan 2022 19:16:25 +1000 Message-Id: <20220107091625.8831-1-zane@zanevaniperen.com> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: cadance.vs49688.net Subject: [FFmpeg-devel] [PATCH] avformat/imf: s/++i/i++/g 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: AOn3/Dw4VpnD --- libavformat/imfdec.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 023f3556f6..3925462a26 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -263,7 +263,7 @@ static void imf_asset_locator_map_init(IMFAssetLocatorMap *asset_map) */ static void imf_asset_locator_map_deinit(IMFAssetLocatorMap *asset_map) { - for (uint32_t i = 0; i < asset_map->asset_count; ++i) + for (uint32_t i = 0; i < asset_map->asset_count; i++) av_freep(&asset_map->assets[i].absolute_uri); av_freep(&asset_map->assets); @@ -334,7 +334,7 @@ clean_up: static IMFAssetLocator *find_asset_map_locator(IMFAssetLocatorMap *asset_map, FFIMFUUID uuid) { - for (uint32_t i = 0; i < asset_map->asset_count; ++i) { + for (uint32_t i = 0; i < asset_map->asset_count; i++) { if (memcmp(asset_map->assets[i].uuid, uuid, 16) == 0) return &(asset_map->assets[i]); } @@ -471,7 +471,7 @@ static int open_track_file_resource(AVFormatContext *s, return AVERROR(ENOMEM); track->resources = tmp; - for (uint32_t i = 0; i < track_file_resource->base.repeat_count; ++i) { + for (uint32_t i = 0; i < track_file_resource->base.repeat_count; i++) { IMFVirtualTrackResourcePlaybackCtx vt_ctx; vt_ctx.locator = asset_locator; @@ -491,7 +491,7 @@ static int open_track_file_resource(AVFormatContext *s, static void imf_virtual_track_playback_context_deinit(IMFVirtualTrackPlaybackCtx *track) { - for (uint32_t i = 0; i < track->resource_count; ++i) + for (uint32_t i = 0; i < track->resource_count; i++) avformat_close_input(&track->resources[i].ctx); av_freep(&track->resources); @@ -553,7 +553,7 @@ static int set_context_streams_from_tracks(AVFormatContext *s) IMFContext *c = s->priv_data; int ret = 0; - for (uint32_t i = 0; i < c->track_count; ++i) { + for (uint32_t i = 0; i < c->track_count; i++) { AVStream *asset_stream; AVStream *first_resource_stream; @@ -600,7 +600,7 @@ static int open_cpl_tracks(AVFormatContext *s) } } - for (uint32_t i = 0; i < c->cpl->main_audio_track_count; ++i) { + for (uint32_t i = 0; i < c->cpl->main_audio_track_count; i++) { if ((ret = open_virtual_track(s, &c->cpl->main_audio_tracks[i], track_index++)) != 0) { av_log(s, AV_LOG_ERROR, @@ -718,7 +718,7 @@ static IMFVirtualTrackResourcePlaybackCtx *get_resource_context_for_timestamp(AV track->index, av_q2d(track->current_timestamp), av_q2d(track->duration)); - for (uint32_t i = 0; i < track->resource_count; ++i) { + for (uint32_t i = 0; i < track->resource_count; i++) { cumulated_duration = av_add_q(cumulated_duration, av_make_q((int)track->resources[i].resource->base.duration * edit_unit_duration.num, @@ -843,7 +843,7 @@ static int imf_close(AVFormatContext *s) imf_asset_locator_map_deinit(&c->asset_locator_map); ff_imf_cpl_free(c->cpl); - for (uint32_t i = 0; i < c->track_count; ++i) { + for (uint32_t i = 0; i < c->track_count; i++) { imf_virtual_track_playback_context_deinit(c->tracks[i]); av_freep(&c->tracks[i]); }