[FFmpeg-cvslog] r17427 - trunk/libavcodec/vdpau.c
cehoyos
subversion
Wed Feb 18 10:21:29 CET 2009
Author: cehoyos
Date: Wed Feb 18 10:21:29 2009
New Revision: 17427
Log:
Instead of crashing, return from ff_vdpau_mpeg_picture_complete()
if get_buffer() failed.
Patch by Reimar
Modified:
trunk/libavcodec/vdpau.c
Modified: trunk/libavcodec/vdpau.c
==============================================================================
--- trunk/libavcodec/vdpau.c Wed Feb 18 10:14:41 2009 (r17426)
+++ trunk/libavcodec/vdpau.c Wed Feb 18 10:21:29 2009 (r17427)
@@ -184,6 +184,8 @@ void ff_vdpau_mpeg_picture_complete(Mpeg
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);
More information about the ffmpeg-cvslog
mailing list