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 D7F3B44DDE for ; Fri, 25 Nov 2022 01:32:40 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5E98A68BB07; Fri, 25 Nov 2022 03:31:11 +0200 (EET) 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 ; Fri, 25 Nov 2022 03:30:56 +0200 (EET) Received: by mail-ej1-f53.google.com with SMTP id bj12so7183083ejb.13 for ; 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-Google-Smtp-Source: AA0mqf5KyxDjpyD8B3InKBuRozk26z2YMo102RpR4WlRdT2ko95IRc0p+I2bKT7w41uLiTS5I3b9/A== 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Marvin Scholz 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: --- libavformat/smjpegenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.37.0 (Apple Git-136) _______________________________________________ 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".