From patchwork Sun Aug 8 17:29:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 29361 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6c0f:0:0:0:0:0 with SMTP id a15csp2206466ioh; Sun, 8 Aug 2021 10:30:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVBAg7oRGUZt7BMFQEq9OSVQF6RexYRgh0CqajTofm0i2yBmLN7MsohmkFUH+XMGQt1Dqy X-Received: by 2002:a17:906:404:: with SMTP id d4mr18952194eja.449.1628443807468; Sun, 08 Aug 2021 10:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628443807; cv=none; d=google.com; s=arc-20160816; b=qVd/WKHM+MTTVdQx+rKDfQJr4voCyH9aqkRAXyKE0OZ1excvMKJNyi5NBCL2JbWbQP 4PppXJAZGHyp/n5VBbq6jxLYdzYKiMvE+gOt3JDWBVgu9JRltSCsQWG4aa2aqwnBmdzY 663qOtmqEZWOFB4QXw7UH+boepvbYB2qn2lmRkHMqyrn31S7ha8k/gfk5bvzomdLKxcd JZpP21YfhLHGJb09GxbHiLm+fI/OFMqeakeBoi6w7ujIIHn516M0RNvLjR7c1uWJE0db 9qTo8wLmF+vb+xqNEkkg8g08fgWwUX2ywzNlHnlP0zpgYVR0gv2kYtyII5uUnafq2yxE czog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=TwdRw7CN+82UUwVNT38YcfDDR/KYiMQqnfnxmA9Rpec=; b=JTn6h4Xyx7HNZYsKdJ/X6JqyDAVq9ePzyBUSXnmbxfrwbQHYp3xonhzwh24QRc3a3n wfe/VPmKasX2PP05X7zk7AsUIawyMABsUuWJfYqkDLjaoUUYfjMbkn+G9U5cY+cYkm0I Vfmr4JvhvpX8c9I1teIl1wT15zoXewEpkWtjTXyiODDfgDD0rfj/tlfkU6FSNmmLdj05 OIsPfVrWtLf/8sHhTQFZ8n1nO9a68SmxFzw/XZPYN3XXt6z46ZEYTFIbMbik6LlJwdSZ nNxcprjRfIomwT8NBuWfZFroM33uS/Frr3j/uMD33EGXPQZ0ptYqQrE772F3H3y093nm NOvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id j18si15193200edw.279.2021.08.08.10.30.07; Sun, 08 Aug 2021 10:30:07 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5758E68A037; Sun, 8 Aug 2021 20:29:55 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B598C680839 for ; Sun, 8 Aug 2021 20:29:47 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 0D5C22404B2 for ; Sun, 8 Aug 2021 19:29:47 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id W-aYQ5G2hjHl for ; Sun, 8 Aug 2021 19:29:46 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 0BCA1240692 for ; Sun, 8 Aug 2021 19:29:46 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 2D2633A0BA4; Sun, 8 Aug 2021 19:29:46 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Sun, 8 Aug 2021 19:29:32 +0200 Message-Id: <20210808172941.18238-1-anton@khirnov.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 01/10] ffmpeg: reset the dict iterator before use 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: +SRYsMLWuxsG --- fftools/ffmpeg_filter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 49076f13ee..b252ee4138 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -971,6 +971,7 @@ int configure_filtergraph(FilterGraph *fg) fg->graph->nb_threads = filter_nbthreads; args[0] = 0; + e = NULL; while ((e = av_dict_get(ost->sws_dict, "", e, AV_DICT_IGNORE_SUFFIX))) { av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value); @@ -984,6 +985,7 @@ int configure_filtergraph(FilterGraph *fg) } args[0] = 0; + e = NULL; while ((e = av_dict_get(ost->swr_opts, "", e, AV_DICT_IGNORE_SUFFIX))) { av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value);