diff options
author | Marton Balint <cus@passwd.hu> | 2020-04-01 01:04:06 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-04-04 22:28:05 +0200 |
commit | f04fe8aa4e290d0d00b2c5bbd33fcf2a43b3fc2d (patch) | |
tree | 0b20959c142d1565a4077f7b98f1f292806e1de7 | |
parent | 550fa277ef976d386b7b17841cb2dd8d1e5db168 (diff) | |
download | ffmpeg-f04fe8aa4e290d0d00b2c5bbd33fcf2a43b3fc2d.tar.gz |
avdevice/decklink_dec: increase autodetect timeout to 3 sec
1 sec might not be enough for the cards to detect the format...
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavdevice/decklink_dec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp index c8d931517e..82106aa69e 100644 --- a/libavdevice/decklink_dec.cpp +++ b/libavdevice/decklink_dec.cpp @@ -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. |