Message ID | 20221125013046.40904-7-epirat07@gmail.com |
---|---|
State | Accepted |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp4948978pzb; Thu, 24 Nov 2022 17:32:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CuyWKD2wWhzYutuJa6W9PYLBSLBw2OOa20CTNzodUSJgicYznpBc7gfzTjtjl0YhtxR2+ X-Received: by 2002:aa7:d718:0:b0:467:6ffe:e94c with SMTP id t24-20020aa7d718000000b004676ffee94cmr32154586edq.417.1669339962784; Thu, 24 Nov 2022 17:32:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669339962; cv=none; d=google.com; s=arc-20160816; b=oRFXl2UfPxP+f+znWpRBWKRTg0LIyZ3Iocqj7dWDrWxuhjyVqJ4XXmTzFbMHd/1rCq jPyD5D9ba92vHT90DEqlZYt/HM79W1ENxTc6++4vjl3QsNepwSR8sLuG2GovVKjfv8Fs EdIdw9kgIU7QPDpExYXMM3yKisres5yzcuo5Ai3IPobt+QbXJ6UeifZ7XNB7s6mBWosy 2Mj841Mcns2rIIlkaDe5yX7bPjDopFF386ESovqT+RkmaOjHJaqqacgYoPOjXfRBLEGh xe2EpUbKbWvnlnkIfF840dmDiLpTckhOAAfZP6KmHuOiYQCJbMdvw+gR8suoW4CXdIE0 EexA== 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:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=oGc1Zgx9xhTWB2wlcoJq+5obdzF67pXvd98v7yk20vc=; b=zW1DIgo7hNuUAXAw8oIS2/21ESpIDYkmsLUqT/r7OfFpnlwDV37k3DuLCJHe9ZIqVs TXeQSqqndv4KwpMdqKvncf20Jo7FISXtEoVUPo0ZFisI4aIcMeOFX8tHYYX6Id0YYrUI GdQbZaCOl2Og55oblEVjPeJ1XXk8cv+cUludM9+f5wA3GWbLYkKJwWzop8segeVwY1EF unRMVSyQCOEC9fzpzuwvWuFDJZk5rkmOT0+2mlDuc2/Ts+v3sJCU7qeoKEuvYUAbEf/h orn4eaE3DOI/R0MlRHn+ljpjY0CMAEnhpLL+Gy1IVP6ABA8bmFwZOlF7aXt/z0TkXXvp SYYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=nuogd7E5; 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: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id hq26-20020a1709073f1a00b007addc76341csi1751117ejc.25.2022.11.24.17.32.42; Thu, 24 Nov 2022 17:32:42 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=nuogd7E5; 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 8A4D668BBEE; Fri, 25 Nov 2022 03:31:11 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DA4AD68BAE8 for <ffmpeg-devel@ffmpeg.org>; Fri, 25 Nov 2022 03:30:56 +0200 (EET) Received: by mail-ej1-f53.google.com with SMTP id bj12so7183083ejb.13 for <ffmpeg-devel@ffmpeg.org>; Thu, 24 Nov 2022 17:30:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GQEYXzXlGKCUgCZFejYqkRTvuuf17L8X93OdjULbxm8=; b=nuogd7E5fiNU9fw+C8ku7nyskcUgpUdMExIWJ59xVedS6PEwPkOpas5XREVnXGTVWp gAmtyJx6o6p30zYY+BdP2f5yZlmkvSYxip0UH5M01PxP7LBtMuGFeeqTgn7GHhnLYRv3 aZT66H3mm1SJA7aCIDDqqD4pfq/M0CXaseImZCXxNKzYpDhnGj46MIgqaD/OwTG4sLk8 Ot8KIwlrd5PhhqSCT+CLoxg3K8Fq2sRR5BLMirW+Pm62pZ+6mvRzdI60vWkwd2nIXcba AUPT/1blLNuHrpGikPbKzRztY1dLF/ZgaKvF1gD7R3q8TD1+jBD1mL4y6EI75hHw+42Q 0tyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GQEYXzXlGKCUgCZFejYqkRTvuuf17L8X93OdjULbxm8=; b=nch7e2gLlUctC0w+8uTAzD3n/DlywhFalLl1lXB8O/UWm3Cki0ai072O4Yf2YTAqJY +mpbfUNPK8VTJHwd9+z+PAg2FVh6QsERoCTBIag4+coYFo9FFTI/U84f8BhNt8fi1h/S nBA9KbyK7u8PCUitkF3nooLo9AE2t7AQoMxSKeL4lRF36MLwudQJSnhJ49aT0hzIRiw5 9KlZ5jUPO3dWTIXukUyLDvgA9qz+fQ+unr1omPPDC5pHp3wKzPTxDYlTL3IuzSUduuZT iwU2ffC+5HXcr7BGbf5AiWeq6VCrJ0+RGBeaI5kHObBHQWUW7H103yWPI/cDX6z9dCam +vfg== X-Gm-Message-State: ANoB5pl8Nevut9UpT2XDNQYlDtdyMo/XdLKZ7rOKzs+an5emcfZsaQR/ bg4c0Ams/9mR5rj19S/xrRK6Sw+gCD4= X-Received: by 2002:a17:906:a10c:b0:78d:8bcf:bb47 with SMTP id t12-20020a170906a10c00b0078d8bcfbb47mr13622072ejy.525.1669339856368; Thu, 24 Nov 2022 17:30:56 -0800 (PST) Received: from MBP-von-Marvin.citadel.scalie.me (84-112-104-25.cable.dynamic.surfer.at. [84.112.104.25]) by smtp.gmail.com with ESMTPSA id jo9-20020a170906f6c900b0078b1ff41f05sm1011498ejb.43.2022.11.24.17.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 17:30:56 -0800 (PST) From: Marvin Scholz <epirat07@gmail.com> To: ffmpeg-devel@ffmpeg.org Date: Fri, 25 Nov 2022 02:30:21 +0100 Message-Id: <20221125013046.40904-7-epirat07@gmail.com> X-Mailer: git-send-email 2.37.0 (Apple Git-136) In-Reply-To: <20221125013046.40904-1-epirat07@gmail.com> References: <20221125013046.40904-1-epirat07@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 06/31] avformat/smjpegenc: use av_dict_iterate X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Marvin Scholz <epirat07@gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: zKPhipLWemp0 |
Series |
Use av_dict_iterate where approproate
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavformat/smjpegenc.c b/libavformat/smjpegenc.c index 888ece2f7c..edba08cf9b 100644 --- a/libavformat/smjpegenc.c +++ b/libavformat/smjpegenc.c @@ -35,7 +35,7 @@ typedef struct SMJPEGMuxContext { static int smjpeg_write_header(AVFormatContext *s) { - AVDictionaryEntry *t = NULL; + const AVDictionaryEntry *t = NULL; AVIOContext *pb = s->pb; int n, tag; @@ -48,7 +48,7 @@ static int smjpeg_write_header(AVFormatContext *s) avio_wb32(pb, 0); ff_standardize_creation_time(s); - while ((t = av_dict_get(s->metadata, "", t, AV_DICT_IGNORE_SUFFIX))) { + while ((t = av_dict_iterate(s->metadata, t))) { avio_wl32(pb, SMJPEG_TXT); avio_wb32(pb, strlen(t->key) + strlen(t->value) + 3); avio_write(pb, t->key, strlen(t->key));