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 ADFA344DDE for ; Fri, 25 Nov 2022 01:33:12 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7C12E68BC35; Fri, 25 Nov 2022 03:31:15 +0200 (EET) Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 83C9768BB03 for ; Fri, 25 Nov 2022 03:31:03 +0200 (EET) Received: by mail-ed1-f54.google.com with SMTP id x102so4560807ede.0 for ; Thu, 24 Nov 2022 17:31:03 -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=eNBXtcOKriISRQaL38CqQYDdphG6M/IVJ1KWP1rzaSwpj1eh+QmQxWB73E8XoUwAXd pYMjUpPrtCMI2fvKtOnHnFyi/ZIuWPsTuClfVjMx8AT1TIuIYgYYQqmoJronqi5YEWQm K+f1rDfS1jmG3x3dLOLFNwNwgr6uBwW8M+qEH4P0psKaJXo5fgZHP2xUxcRQKMW2vH8a N3xBodxtSy2cPHQZnWgREV4JN+O3YdpH+52t2z4/sSfiAnPaFXWMkx92CsTSz34XhUzx l+zYlV1jpTZ+SPLxoZO51f5AXSGPIR+lC1ibIdBdukkV7akQ9+FKomNZvoBL+QrOgKRc ooBA== 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=X7UpkBVF6XP5x1NdIlRWD5pm7NFOcpJOuPc+p/MnPhAu7Nn/hvWdbF7sJLEgI06ZtK GGnANefPDdy792PiDuem3wrbN0vDgPRjzTQvnGATuls1lhBk59umeKxwTM0ffIxj0waK Nkvz6uJnTaWCIeqfRsPZUcCNF1Yal6jmGc8WUsnZVOYpjOxCI7pAzixWuwxE5qivbWgd Ao6BbmpNMYuO6X4w9xaTk88BjqKc94i8LhMK2GPNnVm8Ifp/3HB3oPOOaSlONjmWC6dh BG0e7eFnR5OsMMF5ZvjLxINPU8xrTbEbGfxiuZMlXO/Hf07602/cDHe5jXqSGx0ptSXz tViQ== X-Gm-Message-State: ANoB5pm8twkms9oAFlb+Ax2TFagdqSjtjUtohmxv7t802n5LHUruVOOw t818LGWAwBVoJ6GmuvdAQfueiZ06yC8= X-Google-Smtp-Source: AA0mqf7zqjBIv+f6j4AUV//iAV26meAni5zq5BQLLDLjIAZbOLetX9o53tkTH5HWg4tmiZbAQoY2Jw== X-Received: by 2002:aa7:c145:0:b0:469:400a:3f8e with SMTP id r5-20020aa7c145000000b00469400a3f8emr19147427edp.108.1669339863247; Thu, 24 Nov 2022 17:31:03 -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.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 17:31:02 -0800 (PST) From: Marvin Scholz To: ffmpeg-devel@ffmpeg.org Date: Fri, 25 Nov 2022 02:30:30 +0100 Message-Id: <20221125013046.40904-16-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 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".