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 5975544E72 for ; Sat, 26 Nov 2022 14:48:45 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0A06568BBA5; Sat, 26 Nov 2022 16:47:17 +0200 (EET) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6BE6C68B3E1 for ; Sat, 26 Nov 2022 16:47:09 +0200 (EET) Received: by mail-ej1-f52.google.com with SMTP id n20so16180332ejh.0 for ; Sat, 26 Nov 2022 06:47:09 -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=zzT1C9xStCn93ptLg62c7M0IXqAvZAoahmXbnBxNeOE=; b=llmKUDG8zbhjvzotzctsiFtfSiAKBrWG2/CsJ9ZdkeSVZKx465a1KbQ+hGtRofk8y2 JeDP2Sy3YBN4xkRTWMtd0t5r0tj0uVcutiyng6ZxkjmJ0on5EeAYgsNb/DnXjmZq/cg3 +7CbtbGKskDzCYVyWXBspA3REy2DQr40gED2woUZcKVkj5wbOkqjiMJULaXj56OoptT/ P0d5YdDNvX+cLFgKVMTJH1vE6RSCgakA2gfgVKN5RxFlHooqaIi1eWIKHVCm9UJLvuQQ MviI1TGy0VUEpnlymIV06SfZuI7l7YNovPi/Youpt7sdRJ+fjGHHoFXNQjCgF3NZO+Ew +Gvw== 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=zzT1C9xStCn93ptLg62c7M0IXqAvZAoahmXbnBxNeOE=; b=iqNJa8rJD0iMAIsov+zD2zGO8mIN7ukyzsmMxcBpKnzDZOVJoryi75WRQ2Gv/jrr1f HuDyXOG9oQHBjuAbEyqLgjEK4q2JYg16aGhJnYbP0PKLH9ANOwGwR4hGOoQSxUE8pTH0 dxaT9B2eG9jdN9/UC85z9IXHCgMveJH+GAf2Sq/1PjpaTNtEEkwgo4Lrkb1e50nEYdJg pJ67jM3Dpml4UJevAQQ5EOeNPLJfIEfnnc5z4bXXXLIAOO7dSO6TZYVzq4qqaQRz8UkC yPh7mc1KFlJ5K1qxdr5HEDBm3Qmj1VfCNnulqKorKl98/q4WL58yWn6y1oin062stX31 CTMg== X-Gm-Message-State: ANoB5pmfwqHhFmXaMX6AYe16cGA+bwimqQOEueqlIcl6dJsXTRVHQw0+ ECM9B7S/JgV/40oHuxGg258DsboQPTI= X-Google-Smtp-Source: AA0mqf5GpfQs+gfVxc09elZafNPhKuSkJEoiGwlpJ2iYsW1GljMykWPxVKGFXxfH9JJLQoYBLLfUDQ== X-Received: by 2002:a17:906:edd2:b0:7bb:1424:b112 with SMTP id sb18-20020a170906edd200b007bb1424b112mr11991586ejb.168.1669474028563; Sat, 26 Nov 2022 06:47:08 -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 ay10-20020a056402202a00b00461cdda400esm3107745edb.4.2022.11.26.06.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Nov 2022 06:47:08 -0800 (PST) From: Marvin Scholz To: ffmpeg-devel@ffmpeg.org Date: Sat, 26 Nov 2022 15:46:32 +0100 Message-Id: <20221126144648.73162-16-epirat07@gmail.com> X-Mailer: git-send-email 2.37.0 (Apple Git-136) In-Reply-To: <20221126144648.73162-1-epirat07@gmail.com> References: <20221125013046.40904-1-epirat07@gmail.com> <20221126144648.73162-1-epirat07@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 15/31] avformat/cafenc: 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/cafenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c index b90811d46f..b8317cd5ed 100644 --- a/libavformat/cafenc.c +++ b/libavformat/cafenc.c @@ -113,7 +113,7 @@ static int caf_write_header(AVFormatContext *s) AVIOContext *pb = s->pb; AVCodecParameters *par = s->streams[0]->codecpar; CAFContext *caf = s->priv_data; - AVDictionaryEntry *t = NULL; + const AVDictionaryEntry *t = NULL; unsigned int codec_tag = ff_codec_get_tag(ff_codec_caf_tags, par->codec_id); int64_t chunk_size = 0; int frame_size = par->frame_size, sample_rate = par->sample_rate; @@ -195,13 +195,13 @@ static int caf_write_header(AVFormatContext *s) ff_standardize_creation_time(s); if (av_dict_count(s->metadata)) { ffio_wfourcc(pb, "info"); //< Information chunk - while ((t = av_dict_get(s->metadata, "", t, AV_DICT_IGNORE_SUFFIX))) { + while ((t = av_dict_iterate(s->metadata, t))) { chunk_size += strlen(t->key) + strlen(t->value) + 2; } avio_wb64(pb, chunk_size + 4); avio_wb32(pb, av_dict_count(s->metadata)); t = NULL; - while ((t = av_dict_get(s->metadata, "", t, AV_DICT_IGNORE_SUFFIX))) { + while ((t = av_dict_iterate(s->metadata, t))) { avio_put_str(pb, t->key); avio_put_str(pb, t->value); } -- 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".