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 ESMTPS id 264554DB73 for ; Fri, 28 Feb 2025 15:05:38 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5463368DEEC; Fri, 28 Feb 2025 17:05:34 +0200 (EET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 19C5468DA2D for ; Fri, 28 Feb 2025 17:05:27 +0200 (EET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2210d92292eso5339115ad.1 for ; Fri, 28 Feb 2025 07:05:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=metrica-sports.com; s=google; t=1740755125; x=1741359925; darn=ffmpeg.org; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=jzVUohMWSVQCL5LS8w3WXhV1eQUo0/v+tW2IW/fsqhg=; b=JZIgaqOCDeJf0Zjls4I61D5Dlg4qz9RsXfSGW9FCMPVLJhYeE0lm2ChMkWrgvaD+zQ PL0ntPzaY/GssfNoGA7x00NzCXdZENKbweduWdZ/a6AI3WzCf3TqkTdz0zE5NOtCYa5c /RvVFJCbzcDdkejwB5abGqTL3jwHHUrOc5ANLi+VhD2oOTgknAS2D8Y1RJj2QCNTyDC+ lFB4ruIjclGgJTyaEVGeAsL39tarTyEM3Zg3gG07bp9gwhezoc9SnWKy/mqwGbVerIrb Qd9h7mfK/5HnlpyRqA4p/ZCGhIgFEj8JGMvRX3tii0WbnZ1ppwH12mRxa+m+O8ikM6BH Es1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740755125; x=1741359925; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jzVUohMWSVQCL5LS8w3WXhV1eQUo0/v+tW2IW/fsqhg=; b=QkILOLZs0eYP0sR++i2y7AsyIjOC84SC3srYQPn0J1Ykw6/0e5N0uJ3Ry37hXkDx9s jvxs1U9VMLpDVuRgvtGQIMJ9DbBf5Srsw0IKtpwGOm9Omp4ZxQhwgS9JV65dmxi5bB8H tCyT407XHMzSCVIF18/E2Dqw0TT7bB6dQ0mhu09dA+0aL3/wHYbqv37732N2l6ybQXCu AeOc7Tm5NFupAgq+Qlj/AX8rSC7nFmBMb964KDUFq/0fV6OGRlHUvSkAJq0Wk0QAma5O m/Q9HO7wEBhFxNlBCXCBaVxRVGKI41ShnbjI5sty7b1ZgnVwBkPVxMP3/VBaWui2n7ql QVGA== X-Gm-Message-State: AOJu0Yxwk7tmKQf9UoN2BKeFTr+5YvOThjAJkD9O1Syd48ja6w16vGDU pLtgycCfVL9TABTWBxS5fuKvP0UylokekKqyy4mq8yVThFTYKC+xmI0gXAxqFTOgingY5cSVw2B awDmq6WmYPbm1Zv8igjeZid9+2CX03ybWI5rW9A7z7pdLnXoFL1Mjnx2OMSMa2A== X-Gm-Gg: ASbGncsRXha1jhlZWkeH9KE5Z8Vz9dJlxO3sdG7VCz69nrc+M1zOaipQitmEmcdaOSu 2c/MTip4g/20/vBIsJKd1P99hmfQbxhi70AneToStw3XS1uaKI0Mb18jYRidxJSEEmnQamMNwFz TnW4jYF0HYpL64+EhmcumVoMHWi2A8DJgztYu3xcSxhXTHSHP8Z39DS38PZSKhDkhAc7uFqB70I pKW2EaW2NlO8gsMlYi5DDT3fLEmgKR+YoNLgyHhBOo+ogTd4dEIx+YzGcJ51QA2hai4KnmtLtSh fpYtkad0ll9XrXWGy6FYTRWY19SgAPPjIdNjiw== X-Google-Smtp-Source: AGHT+IH6XGmGzA3EkAzYL/YWAVBscN5YwSjLmQclG6MLYyoyc6NVQDwcBJb5XQD96NCAZoDjcz36oQ== X-Received: by 2002:a05:6a00:a91:b0:732:1840:8382 with SMTP id d2e1a72fcca58-734abed2a3bmr6841493b3a.0.1740755124625; Fri, 28 Feb 2025 07:05:24 -0800 (PST) Received: from smtpclient.apple ([4.217.251.158]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-734a0024c6bsm3831934b3a.111.2025.02.28.07.05.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Feb 2025 07:05:24 -0800 (PST) From: David Franco Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Date: Fri, 28 Feb 2025 23:05:09 +0800 References: <20241023075959.2425-1-david@metrica-sports.com> To: ffmpeg-devel@ffmpeg.org In-Reply-To: <20241023075959.2425-1-david@metrica-sports.com> Message-Id: <903B460E-5768-44BD-8D04-28369E80595D@metrica-sports.com> X-Mailer: Apple Mail (2.3774.200.91.1.1) Subject: [FFmpeg-devel] [PATCH 1/1] Bug Fix: Prevent AVFoundation configuration error when two different formats have the same dimensions but different frame rates. 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: --- libavdevice/avfoundation.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index 61dac4b713..b625990c37 100644 --- a/libavdevice/avfoundation.m +++ b/libavdevice/avfoundation.m @@ -375,6 +375,15 @@ static int configure_video_device(AVFormatContext *s, AVCaptureDevice *video_dev break; } } + + if(selected_range){ + /** + * Each format can have different frame rate ranges. + * Other format could have the same dimensions and override the selected format, + * this would cause a configuration error. + */ + break; + } } } -- 2.39.3 (Apple Git-145) -- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. _______________________________________________ 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".