mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
libobs: Add array check for deinterlace logic
Seeing a rare assert on startup for a media source with deinterlacing already on. Tested with Yadif 2x. Repro is maybe 10% of OBS launches?
This commit is contained in:
parent
13f2d7925f
commit
dd86425559
|
@ -181,7 +181,8 @@ static inline void deinterlace_get_closest_frames(obs_source_t *s,
|
|||
|
||||
da_erase(s->async_frames, 0);
|
||||
|
||||
if (s->cur_async_frame->prev_frame) {
|
||||
if ((s->async_frames.num > 0) &&
|
||||
s->cur_async_frame->prev_frame) {
|
||||
s->prev_async_frame = s->cur_async_frame;
|
||||
s->cur_async_frame = s->async_frames.array[0];
|
||||
|
||||
|
|
Loading…
Reference in a new issue