Commit 9bbf1a5c authored by Reimar Döffinger's avatar Reimar Döffinger Committed by Carl Eugen Hoyos

Instead of crashing, return from ff_vdpau_mpeg_picture_complete()

if get_buffer() failed.

Patch by Reimar

Originally committed as revision 17427 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 59501dc8
......@@ -184,6 +184,8 @@ void ff_vdpau_mpeg_picture_complete(MpegEncContext *s, const uint8_t *buf,
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);
......
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