Browse Source

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
tags/v0.5
Reimar Döffinger Carl Eugen Hoyos 17 years ago
parent
commit
9bbf1a5c23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/vdpau.c

+ 2
- 0
libavcodec/vdpau.c View File

@@ -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);



Loading…
Cancel
Save