From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 1F9E44E494 for ; Fri, 23 Jan 2026 08:15:02 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'tutKaUz84F1WR2aOc6wZnHIAOonW5dTeJjgu9u0ay5M=', expected b'wySANlHjjaAm/krxFaZl3VB+HbliX8DDRomLo/HSWFg=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1769156094; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=tutKaUz84F1WR2aOc6wZnHIAOonW5dTeJjgu9u0ay5M=; b=p/lByRiWJdvvoDXu+EEQhoQFAl/rqO9Wvm/Q7fDZZ999HhxITfMyliRcnGZiIBoAp8enF hlMJwmGMM+/R/+0vGoTM08aGCQoFGEDaL/guJ+EIskpg6uhPrP5asmJvm7ZrpB6CaVB2jlw YI54Gq+dHvezt0VdVF8Cco6kS2dLS0+X+mkhBObWWKfX7T2Ntf7CvfC9DAnCSlPXbJ7uwMN fMcUKVETpVZh/9DxDomyJbG8g/0b+sky/VftYdk8vGOj6x164tEMLd+ldRPalH3fNLWGo63 Z8NbJxb6nh+93gWfm0HRSkn7hEEuzCIlYYUsgNePLjdEJfp8MkE27D4bTLcw== Received: from [172.20.0.4] (unknown [172.20.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 5AC166913EB; Fri, 23 Jan 2026 10:14:54 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1769156081; b=emnIiBSpTEvEiqocOOFjRqZAIOl7TOALy7MDIvGPGyBpqv/EzxLoBG9wDtt/WnKipzLQz pSO8RykDdympLGxuS+5xvFmxzi/xOVqfQDLhF1+RisT83y8Ugz6s5WnM0k49ZWpe918vkFi ivViE+LGrZEFYJd4U7c/ZarMm8AnmEOccMKp5tdaIvyJiw0J5Quq/vOo/evLAyuFMDbc8xR 9/bisZ/ie3mA0QRFO9q6d+P8pBCgzNXAkHQOH4ukgfwvSmuiJ2BTBFAMPvi8LrGA9O6mWOo qMfXlpmyx++deZZnszzkhqbxM/7HCu4W9/eYrRHrgpB83iFJbIxHPGDg5Irg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1769156081; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=ZO30sOCNWlVEiFtGALwxQ9GLN83FXhCm0VWDwAiF5kw=; b=gVIuJM/BpfSJAzivWSjj1KhXfSqXIsHZgW2elXrlo2bglJiqdr0WWMCZ7PPZYGSYjxr5G lZFsq1uY9jJ+Xy7GPHrf9yPfNq5J3WzOwgNqkPmaQqCtuNYGoZWgXx8VtyJlaRXR5DUr6yW N2rt6hBThfW8hLqaKmKPmsejekOUh6SiQtKVWq8GkMVR+JT47H2BPo2uLtVVxemqZWtgilR ozFwXoQJBwt+++E3QPcdL40CdztuMWybpgrhkdZwxx5lQOX2X0ecRV+X0QE5IO027yOr17g CMti4kwdLtfnu9cSK/a7t5LzPXK1Da7SUvpp0HuuCC9Z87gUzqN5UsDIQ/LA== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=pass header.from=ffmpeg.org policy.dmarc=quarantine Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=ffmpeg.org policy.dmarc=quarantine DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1769156073; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=wySANlHjjaAm/krxFaZl3VB+HbliX8DDRomLo/HSWFg=; b=fUnHsKuGE2GnFRzf7JeTbuZvPbzgHB8yYTF0r+hfcd8KFjr+fHkKPFOcs/0hGrXTpKWIY oYZbxLlUTGzpkTpWsn3snGeCUjavf7xC0cqoasfBT8muA1Ea15OB+iw+whZTXyxDoiJFS1T ZRU6qkDqwMbQ3ccn5yWBOSMhBVwKK9uLN3ZlVelUemO22g/Yc4LbnXLS1/5O4S+lXTSoDMB J7Ic60I/amRoy0lggs5ghjkorfkrdfthYg4o0AkYiXCZCNU/D6L34ovXgULB3Ei2cVcJSBu HS2SZcK7gfrHD6dQGePGGI9RBqV+qqVWqQ/gMUKmYuy3KhHRS70XyZUjxlHA== Received: from 69dab402ede7 (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id E047E691356 for ; Fri, 23 Jan 2026 10:14:33 +0200 (EET) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Fri, 23 Jan 2026 08:14:33 -0000 Message-ID: <176915607407.25.2969793834414536723@4457048688e7> Message-ID-Hash: YLYAY7FHXKL5WS7ZJ2YP7F4OSF25OXVZ X-Message-ID-Hash: YLYAY7FHXKL5WS7ZJ2YP7F4OSF25OXVZ X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PR] fftools/ffplay: enforce minimum window size (PR #21555) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: FgoDt via ffmpeg-devel Cc: FgoDt Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #21555 opened by FgoDt URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21555 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21555.patch Ensure the playback window is not created smaller than 128 pixels by introducing SDL_MIN_WINDOW_SIZE constant. Smaller window sizes may cause window controls to be hidden or unusable. >>From 6ae031192ee0a583e2503d6d1340de37f6500988 Mon Sep 17 00:00:00 2001 From: zhao li Date: Fri, 23 Jan 2026 16:03:11 +0800 Subject: [PATCH] fftools/ffplay: enforce minimum window size Ensure the playback window is not created smaller than 128 pixels by introducing SDL_MIN_WINDOW_SIZE constant. Smaller window sizes may cause window controls to be hidden or unusable. --- fftools/ffplay.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index fe9aec05ab..1de586dd0a 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -75,6 +75,9 @@ const int program_birth_year = 2003; /* Step size for volume control in dB */ #define SDL_VOLUME_STEP (0.75) +/* Minimum window size; smaller sizes may cause window controls to be hidden */ +#define SDL_MIN_WINDOW_SIZE 128 + /* no AV sync correction is done if below the minimum AV sync threshold */ #define AV_SYNC_THRESHOLD_MIN 0.04 /* AV sync correction is done if above the maximum AV sync threshold */ @@ -1394,6 +1397,9 @@ static int video_open(VideoState *is) w = screen_width ? screen_width : default_width; h = screen_height ? screen_height : default_height; + w = FFMAX(w, SDL_MIN_WINDOW_SIZE); + h = FFMAX(h, SDL_MIN_WINDOW_SIZE); + if (!window_title) window_title = input_filename; SDL_SetWindowTitle(window, window_title); -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org