]> git.sesse.net Git - ffmpeg/commitdiff
avdevice/decklink_dec: increase autodetect timeout to 3 sec
authorMarton Balint <cus@passwd.hu>
Tue, 31 Mar 2020 23:04:06 +0000 (01:04 +0200)
committerMarton Balint <cus@passwd.hu>
Sat, 4 Apr 2020 20:28:05 +0000 (22:28 +0200)
1 sec might not be enough for the cards to detect the format...

Signed-off-by: Marton Balint <cus@passwd.hu>
libavdevice/decklink_dec.cpp

index c8d931517e4375e0daf8d54a2456bb1a13743600..82106aa69e7d5940b4485a967527a5c381b43e7d 100644 (file)
@@ -950,8 +950,8 @@ static int decklink_autodetect(struct decklink_cctx *cctx) {
         return -1;
     }
 
-    // 1 second timeout
-    for (i = 0; i < 10; i++) {
+    // 3 second timeout
+    for (i = 0; i < 30; i++) {
         av_usleep(100000);
         /* Sometimes VideoInputFrameArrived is called without the
          * bmdFrameHasNoInputSource flag before VideoInputFormatChanged.