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 EBB6B44E67 for ; Sat, 26 Nov 2022 14:51:04 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7C3F468BCDF; Sat, 26 Nov 2022 16:47:33 +0200 (EET) Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9F31A68BAEC for ; Sat, 26 Nov 2022 16:47:18 +0200 (EET) Received: by mail-ej1-f50.google.com with SMTP id i10so16072579ejg.6 for ; Sat, 26 Nov 2022 06:47:18 -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=HG4gyINHs/NtytEjOQKWfmvhQoVCzKLc4ErrH681+gn7TYgo0GN9FQwQh1tHZNTbQM 6GBFGM1CSzGTR6gcykytQZRz64gHMNWuXHpeDa1tupfRdNDc9B2jn6Sn6xkcAHdJ45bp azLunIB9B4ldQLjPz7/Olf6UnI0GGLrnhcgZnCh/tQ0eXNXplrbeZPj2oTKijmjPC1WK YZbUQUTWzqG1Lefwwcus8UrYecuuRBC921psPk/0+sd2zCYSHZyAtrYEbbuJlyV492Oq utDjs1upZCnsZdScZG53m2t/XFGUVA2/sfigFeeyjtajyGoo+b61CjNzn0VYcbEpxJNe yZXw== 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=StGqw91kfLjOnCe1o4sQhYQI9pipJu1plEVRYyQQ/ElnURvFPQ1eAKBhcPp2LLVOWc 7/i1DE9w5oBTIbqhveLVWRVuNqgRwocqObiGCrZXBiAx9ULGZytxP5zKB+kd18JabXCW l96yCbd1NVWmMDIMjJrlI5RF4/TBLRJc+3zzubrt1EoJGwEKHyWUfZTPRsJeS7pOj9Pz MSwGDKv0c5Itm/ufjmORjIHOlsgFS4NeN7ajPPRU+dM+BlYRwZFYe/zxgWuufpiBZ93C p0jFsm841XV1bndnOrZX4LLuJC6bVessJe3SwcPEhYQYbBwwo09QLHIEH2+Pqi5CVZJR 6NGQ== X-Gm-Message-State: ANoB5pmvzT1DbHT6Or/5G2+W4uhxYQ0FRLtfUhKSB7+tIhs6u/gzrNfp rVgtbML8odzf8MNQVEc65mqYApQKHHU= X-Google-Smtp-Source: AA0mqf6gP22hoFUxlSlqL9TmGATWjoGpMlDB0sQrYFQtj4tIBy1jDjjGIZhu+Y2Om1jKNScgtSuJbA== X-Received: by 2002:a17:906:a397:b0:7ae:5381:bd02 with SMTP id k23-20020a170906a39700b007ae5381bd02mr35541126ejz.286.1669474038421; Sat, 26 Nov 2022 06:47:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Nov 2022 06:47:18 -0800 (PST) From: Marvin Scholz To: ffmpeg-devel@ffmpeg.org Date: Sat, 26 Nov 2022 15:46:46 +0100 Message-Id: <20221126144648.73162-30-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 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".