mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-28 23:09:59 +02:00
vdpau/chroma: remove always false condition
sys->history[MAX_PAST + MAX_FUTURE] is set a few lines above and can't be NULL
otherwise it would crash on the src->context check above.
It can't be NULL since at least 47c9655e19
.
This commit is contained in:
parent
7b4eff1ccc
commit
de1bdfd4fb
@ -464,8 +464,7 @@ static picture_t *Render(filter_t *filter, picture_t *src, bool import)
|
||||
picture_t *pic_f = sys->history[MAX_PAST];
|
||||
if (pic_f == NULL)
|
||||
{ /* There is no present field, probably just starting playback. */
|
||||
if (!sys->history[MAX_PAST + MAX_FUTURE] ||
|
||||
!sys->history[MAX_PAST + MAX_FUTURE]->b_force)
|
||||
if (!sys->history[MAX_PAST + MAX_FUTURE]->b_force)
|
||||
goto skip;
|
||||
|
||||
/* If the picture is forced, ignore deinterlacing and fast forward. */
|
||||
|
Loading…
Reference in New Issue
Block a user