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 6091744DEA for ; Fri, 25 Nov 2022 01:35:03 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0B62768BCBC; Fri, 25 Nov 2022 03:31:31 +0200 (EET) Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8811068BC38 for ; Fri, 25 Nov 2022 03:31:15 +0200 (EET) Received: by mail-ed1-f51.google.com with SMTP id b8so4471378edf.11 for ; Thu, 24 Nov 2022 17:31:15 -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=W7yoqjrBB+ge8dqCjWZzJBbZ8Tp+v6XEVEhqmUELwho=; b=oVBz6h87ZsHymSCrvm/M4Pqws5rO92ld1cDRJHt7liU4j3mtImcN44Qn8ycVOXoqVE /qFc9YhrZes2RYmpPdNvh3E3FVBfuChrNl21gH0V9IytMIMn0TdiLjatUHF28DblDnhf +Tbdlk9ibffmYCwQ7hKYQESMsiSk10LAQuDeXOUQXIxtGRS6LWuPD4kcfSC3F5axVx// GXynIcZdnnF3qlhU4IQpsGkosIDiaxO9c4sNFSCp+hUQUKyrcw+2YjqnF9yP9x4hBAAP fWlr3+ZqH9bnl7e7OCR3pc4fI/oucr2uvvqzVV9dURhpq3qiSs6/MsOMWNORs0p1tdgl rY/Q== 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=W7yoqjrBB+ge8dqCjWZzJBbZ8Tp+v6XEVEhqmUELwho=; b=nCmDU8GhgIdRAwlUJebMLpTrfXX1zb20caK+YOHJnYpME0NkeSFdIh8Yt9NXPPyl1I KISbiKNOI0FHIk6BgcdiKLjtDGKgPJESB2c/Z2fbysDbMwzwL1HxQ0juNDB7+ZW8CsWE mm4sH1o8sa3djdIDvrrSAau7UiA/8TTJANckGjyeHbhHKiZ6UsL6nAk6E2I8I44HPO7Y ihi42/mwV8i45M3vAF75BI43XAKmMR8+6Z8OpDVzvgtiZMDVknXiPsJAcDTG2aaGcAlH pGtCxuZr0MDeC/yP18XW0Ohx5ScoyGnXI1Ht88+y62irS4tJwVR76urnq2RFHpqqkkZ+ 4iJg== X-Gm-Message-State: ANoB5pnndapQ2NUcb5VdYL+SfuTQJLMnAKthV+RM/TXdLul4pZFtaIwq IxNWgyxKYxJId39pbfKEjwwGjFlcxT4= X-Google-Smtp-Source: AA0mqf5nyet7lWo5G1IeUng/fStx4SvJVzKZaQT3ziqpVI44S0fLl9ViTzM4cwCLEOIGln150wc+kA== X-Received: by 2002:a05:6402:1772:b0:46a:7f4d:efe5 with SMTP id da18-20020a056402177200b0046a7f4defe5mr5516455edb.304.1669339875167; Thu, 24 Nov 2022 17:31:15 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 17:31:14 -0800 (PST) From: Marvin Scholz To: ffmpeg-devel@ffmpeg.org Date: Fri, 25 Nov 2022 02:30:44 +0100 Message-Id: <20221125013046.40904-30-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 29/31] avformat/http: 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/http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/http.c b/libavformat/http.c index c5c48c7900..7bce821535 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -1021,11 +1021,11 @@ static int parse_cookie(HTTPContext *s, const char *p, AVDictionary **cookies) static int cookie_string(AVDictionary *dict, char **cookies) { - AVDictionaryEntry *e = NULL; + const AVDictionaryEntry *e = NULL; int len = 1; // determine how much memory is needed for the cookies string - while (e = av_dict_get(dict, "", e, AV_DICT_IGNORE_SUFFIX)) + while ((e = av_dict_iterate(dict, e))) len += strlen(e->key) + strlen(e->value) + 1; // reallocate the cookies @@ -1036,7 +1036,7 @@ static int cookie_string(AVDictionary *dict, char **cookies) *cookies[0] = '\0'; // write out the cookies - while (e = av_dict_get(dict, "", e, AV_DICT_IGNORE_SUFFIX)) + while ((e = av_dict_iterate(dict, e))) av_strlcatf(*cookies, len, "%s%s\n", e->key, e->value); return 0; -- 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".