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 B6DC34A910 for ; Wed, 24 Apr 2024 01:46:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0E03268D3B4; Wed, 24 Apr 2024 04:45:36 +0300 (EEST) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id ED2DB68D3C1 for ; Wed, 24 Apr 2024 04:45:26 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 24D361C0002 for ; Wed, 24 Apr 2024 01:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1713923126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ToFhd9uyxTZtWv/0Ozu+fstrU7aJJJ3d7JJ6xRV1ZYk=; b=BgvRr/IJXQxuqjnsYkwDnVgc5lW8ZRhD7L/zmVw8pdbarj2GpVofpfLmDsw2T+gX/lLgUn w3wkLesXt0h4kUkQmJ8GhnWMxjiLaRnKmb9JI+ZXC2XSyXbVrNJqBoS74PtzHe3SRZHu3B an5mrUWwukXFnXvM0YUYx4wN9TlKGPfRaMUweoukQ9SyJGtiG+nc4ayqxsLIsf4Lkb7q5u isKvJrpJcUiW113PQaDfU3N4LWa/MUfxrdIeszhLEh+4+qNiaTI2KnqFcelK0cRMWKZl4v dKb2oGE4EFVC2BC7W1p1GhUbw7RgAdSQbS4W1v9BNdNXueHcUP70KMmHyDkDtQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Wed, 24 Apr 2024 03:45:21 +0200 Message-ID: <20240424014522.4015429-4-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240424014522.4015429-1-michael@niedermayer.cc> References: <20240424014522.4015429-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 4/5] doc/examples/qsv_transcode: Simplify str_to_dict() loop 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 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: Fixes: CID1517022 Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- doc/examples/qsv_transcode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/examples/qsv_transcode.c b/doc/examples/qsv_transcode.c index a4440a3403f..8e843ddd84c 100644 --- a/doc/examples/qsv_transcode.c +++ b/doc/examples/qsv_transcode.c @@ -76,8 +76,7 @@ static int str_to_dict(char* optstr, AVDictionary **opt) if (value == NULL) return AVERROR(EINVAL); av_dict_set(opt, key, value, 0); - } while(key != NULL); - return 0; + } while(1); } static int dynamic_set_parameter(AVCodecContext *avctx) -- 2.43.2 _______________________________________________ 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".