[FFmpeg-devel] [PATCH v2] lavfi/vsrc_ddagrab: add an option to avoid duplicating frames

Anton Khirnov anton at khirnov.net
Mon Jan 29 21:02:49 EET 2024


Quoting Timo Rothenpieler (2024-01-29 19:55:26)
> On 29.01.2024 19:31, Anton Khirnov wrote:
> >       { NULL }
> >   };
> >   
> > @@ -688,7 +691,7 @@ static int next_frame_internal(AVFilterContext *avctx, ID3D11Texture2D **desktop
> >   
> >       hr = IDXGIOutputDuplication_AcquireNextFrame(
> >           dda->dxgi_outdupl,
> > -        dda->time_timeout,
> > +        need_frame ? INFINITE : dda->time_timeout,
> 
> My main worry with this is that the filter could potentially be sitting 
> there for a really, really long time.

I agree, ideally there should be some kind of an interrupt mechanism,
but AFAIK nothing of the sort exists in lavfi currently.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list