Message ID | 20200331230530.5074-1-cus@passwd.hu |
---|---|
State | Accepted |
Headers | show |
Series | [FFmpeg-devel] avdevice/decklink_dec: increase autodetect timeout to 3 sec | expand |
Context | Check | Description |
---|---|---|
andriy/ffmpeg-patchwork | success | Make fate finished |
On Wed, 1 Apr 2020, Marton Balint wrote: > 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 | 4 ++-- > 1 file 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. Applied. Regards, Marton
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.
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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)