Commit 59ab278d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

deinterlace: do not crash on broken pictures

parent e859d6a2
...@@ -43,6 +43,9 @@ static picture_t *Deinterlace(filter_t *filter, picture_t *src) ...@@ -43,6 +43,9 @@ static picture_t *Deinterlace(filter_t *filter, picture_t *src)
sys->last_pts = src->date; sys->last_pts = src->date;
vlc_vdp_video_field_t *f1 = src->context; vlc_vdp_video_field_t *f1 = src->context;
if (unlikely(f1 == NULL))
return src;
if (f1->structure != VDP_VIDEO_MIXER_PICTURE_STRUCTURE_FRAME) if (f1->structure != VDP_VIDEO_MIXER_PICTURE_STRUCTURE_FRAME)
return src; /* cannot deinterlace twice */ return src; /* cannot deinterlace twice */
#ifdef VOUT_CORE_GETS_A_CLUE #ifdef VOUT_CORE_GETS_A_CLUE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment