[FFmpeg-devel] [PATCH 1/5] lavd/avfoundation: Change default device from muxed type

Thilo Borgmann thilo.borgmann at mail.de
Sun Apr 20 12:59:06 CEST 2014


-------------- next part --------------
>From 5719947c4a926ed163cc36b89f9293e79ab6e47f Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann at mail.de>
Date: Sun, 20 Apr 2014 12:34:08 +0200
Subject: [PATCH 1/5] lavd/avfoundation: Change default device from muxed type
 to video type.

---
 libavdevice/avfoundation.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index 3622be0..2ac1b3c 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -191,7 +191,7 @@ static int avf_read_header(AVFormatContext *s)
             goto fail;
         }
     } else {
-        video_device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeMuxed];
+        video_device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
     }
 
     // Video capture device not found, looking for AVMediaTypeVideo
-- 
1.8.3.2



More information about the ffmpeg-devel mailing list