Commit e179612d authored by cehoyos's avatar cehoyos

Instead of crashing, return from ff_vdpau_mpeg_picture_complete()

if get_buffer() failed.

Patch by Reimar


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17427 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 82faa974
...@@ -184,6 +184,8 @@ void ff_vdpau_mpeg_picture_complete(MpegEncContext *s, const uint8_t *buf, ...@@ -184,6 +184,8 @@ void ff_vdpau_mpeg_picture_complete(MpegEncContext *s, const uint8_t *buf,
struct vdpau_render_state *render, *last, *next; struct vdpau_render_state *render, *last, *next;
int i; int i;
if (!s->current_picture_ptr) return;
render = (struct vdpau_render_state *)s->current_picture_ptr->data[0]; render = (struct vdpau_render_state *)s->current_picture_ptr->data[0];
assert(render); 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