[vlc-commits] deinterlace: do not crash on broken pictures
Rémi Denis-Courmont
git at videolan.org
Tue Jul 9 21:04:27 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 9 22:04:01 2013 +0300| [59ab278dde62e52137c21901fcd4dfa686da1290] | committer: Rémi Denis-Courmont
deinterlace: do not crash on broken pictures
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=59ab278dde62e52137c21901fcd4dfa686da1290
---
modules/hw/vdpau/deinterlace.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/hw/vdpau/deinterlace.c b/modules/hw/vdpau/deinterlace.c
index b0eea6b..cf737ab 100644
--- a/modules/hw/vdpau/deinterlace.c
+++ b/modules/hw/vdpau/deinterlace.c
@@ -43,6 +43,9 @@ static picture_t *Deinterlace(filter_t *filter, picture_t *src)
sys->last_pts = src->date;
vlc_vdp_video_field_t *f1 = src->context;
+ if (unlikely(f1 == NULL))
+ return src;
+
if (f1->structure != VDP_VIDEO_MIXER_PICTURE_STRUCTURE_FRAME)
return src; /* cannot deinterlace twice */
#ifdef VOUT_CORE_GETS_A_CLUE
More information about the vlc-commits
mailing list