Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 1/1] Bug Fix: Prevent AVFoundation configuration error when two different formats have the same dimensions but different frame rates.
       [not found] <20241023075959.2425-1-david@metrica-sports.com>
@ 2025-02-28 15:05 ` David Franco
  0 siblings, 0 replies; only message in thread
From: David Franco @ 2025-02-28 15:05 UTC (permalink / raw)
  To: ffmpeg-devel

---
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".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-28 15:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20241023075959.2425-1-david@metrica-sports.com>
2025-02-28 15:05 ` [FFmpeg-devel] [PATCH 1/1] Bug Fix: Prevent AVFoundation configuration error when two different formats have the same dimensions but different frame rates David Franco

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git