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 0B2E840BC7 for ; Sat, 5 Feb 2022 04:09:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 23CA068B30F; Sat, 5 Feb 2022 06:09:29 +0200 (EET) Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 16F7868B309 for ; Sat, 5 Feb 2022 06:09:23 +0200 (EET) Received: by mail-qt1-f176.google.com with SMTP id v5so7462314qto.7 for ; Fri, 04 Feb 2022 20:09:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=LicZ08IXxmay83qtVmusPyIB0XvxtuHzTUwlbQ8QKSg=; b=XLdJTd9d9SlpdwGgyrK28Xv3JoJPJatqOsjYsJ9EmGhmyslk0CB52ZquLeKC8a/QKh BHBY5t38rvURgZ8tKtFWRAgEgvpPjghRqA6M8Z/PKlXF9viQN3Yf+Fb550EA4djc8SAq MErlUYaayd5X7r1waV2BATi6ynfsCSMRUOOxyUdYxhQT0FXNTIDWhxVjbYMwDVZW3E+5 yTp1d2XEjMmQLk7UiZnHBOgLMqovE5SYXLb0IvkrhZfzdt19SBNq0z0sR8FjTDuzvIoo lQxEES0PkVbrHj4HG8XlupCS+7dopcg5ySPmS3KPF/mHoUWhG/I4kzA36v0xhzFCl30K TL+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=LicZ08IXxmay83qtVmusPyIB0XvxtuHzTUwlbQ8QKSg=; b=p7uAoJ9c9GaAKIV20rFtr+71g+XjoTweEva+srJ4FEICIuHCfq5C8Qng0VU1cI9UEl KDoQ+gZDT6s7t5zwVK8oFRcfIwy8keDPqB5H9v9NOXbH+jIr0p+l2VqXXbkeCt3GycgM LMxRT0NujYxLPwbECRwjnlS94CDpgKolSLc3SL0OB1we1UYZYgrbyeNHQu1iYq7SWSfi oF8Z9kxERoxwuafSDLDhO0w423nrFuH9vTLZhAyPHm6fEriGEUPH2+BMLRQRH9cAIVYT yccdGLsPRMgHVN9NDVE1+vpsO2iU/MX4oMUwk/DVATY1ObIl6QnS+pNSqDTthI+EcOqR 4nBA== X-Gm-Message-State: AOAM530QPcJ2P4+/qp3MW5wV0iHMlvKteaLEGqlxlQGh4rkQyAjeDrcE AkFeuSE08VbYANVZm85X3GKwWR6/TbBW2g== X-Google-Smtp-Source: ABdhPJz/l5TjBortiQGmsLujs6PzZgYB9MNPcDewVAPsb12nwpqv6m/qsf6u0lps+Fvwowzur0HKzQ== X-Received: by 2002:a05:622a:54f:: with SMTP id m15mr1594779qtx.69.1644034161670; Fri, 04 Feb 2022 20:09:21 -0800 (PST) Received: from [192.168.1.64] ([151.200.235.219]) by smtp.gmail.com with ESMTPSA id c127sm1924675qkf.36.2022.02.04.20.09.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Feb 2022 20:09:21 -0800 (PST) Message-ID: <5f4b2081-89c7-3954-2cdd-d1e62eae823b@gmail.com> Date: Fri, 4 Feb 2022 23:09:20 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20220201212056.29712-1-scott.the.elm@gmail.com> <20220203184450.5491-1-scott.the.elm@gmail.com> <20220203184450.5491-11-scott.the.elm@gmail.com> From: Scott Theisen In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH v2 10/13] cbs_mpeg2.c: use a while loop with a loop condition instead of an infinite 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 2/4/22 23:06, Andreas Rheinhardt wrote: > Scott Theisen: >> On 2/4/22 20:48, Andreas Rheinhardt wrote: >>> I disagree that this enhances clarity: When using a counter, a for loop >>> is the most natural. >> The counter is not used as the loop condition, so it is not natural. >> Also, you removed the counter and made this a do while loop in your own >> patch series. > Yes, after the counter has been removed, using a for-loop stopped being > natural. It is not really a for-loop, though, since it has no loop condition and is thus an infinite loop that just happens to be abusing the for-loop syntax. -Scott _______________________________________________ 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".