[FFmpeg-devel] [PATCH] -- Add input mode autodetect to the decklink module.

Felt, Patrick Patrick.Felt at echostar.com
Thu May 12 23:10:29 CEST 2016


Ah…  I see a bug.  I should either be setting ctx->video in the if block or I should be breaking instead of continuing.  Good catch!

 
On 5/12/16, 1:32 PM, "ffmpeg-devel on behalf of Matthias Hunstock" <ffmpeg-devel-bounces at ffmpeg.org on behalf of atze at fem.tu-ilmenau.de> wrote:

>Am 12.05.2016 um 19:16 schrieb Felt, Patrick:
>> +        while (!ctx->video) {
>> +            if (autodetect_delay--) {
>> +                /* this could indicate we are in the right mode.  let's assume so */
>> +                continue;
>> +            }
>> +            sleep(1);
>> +        }
>
>I don't get it. How does this loop sleep for autodetect_delay seconds? I
>read it like "spin-loop for autodetect_delay times and then probe
>ctx->video each second, possibly forever".
>
>
>
>_______________________________________________
>ffmpeg-devel mailing list
>ffmpeg-devel at ffmpeg.org
>http://ffmpeg.org/mailman/listinfo/ffmpeg-devel



More information about the ffmpeg-devel mailing list