changeset 8968:b123ed268953 libavcodec

Instead of crashing, return from ff_vdpau_mpeg_picture_complete() if get_buffer() failed. Patch by Reimar
author cehoyos
date Wed, 18 Feb 2009 09:21:29 +0000
parents f0abc5f9e726
children 9218ef5d5afb
files vdpau.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vdpau.c	Wed Feb 18 00:38:10 2009 +0000
+++ b/vdpau.c	Wed Feb 18 09:21:29 2009 +0000
@@ -184,6 +184,8 @@
     struct vdpau_render_state *render, *last, *next;
     int i;
 
+    if (!s->current_picture_ptr) return;
+
     render = (struct vdpau_render_state *)s->current_picture_ptr->data[0];
     assert(render);