From de1bdfd4fb45d414afd9eecc8d215fa222290902 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Tue, 14 Sep 2021 13:44:26 +0200 Subject: [PATCH] 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 47c9655e19e6034fbd60bea3fb1caf5e3166e009. --- modules/hw/vdpau/chroma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/hw/vdpau/chroma.c b/modules/hw/vdpau/chroma.c index 2f31a8a759..8ff8a8a82c 100644 --- a/modules/hw/vdpau/chroma.c +++ b/modules/hw/vdpau/chroma.c @@ -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. */