diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-02-18 09:21:29 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-02-18 09:21:29 +0000 |
commit | 9bbf1a5c232cffb64e5f8cf071d1626cc0d033e1 (patch) | |
tree | ca6b497cd928a36242f335981f6648fd437efa99 /libavcodec/vdpau.c | |
parent | 59501dc84d512ff0c0e833d1fd6a8f4c7f3b05b2 (diff) | |
download | ffmpeg-9bbf1a5c232cffb64e5f8cf071d1626cc0d033e1.tar.gz |
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
Diffstat (limited to 'libavcodec/vdpau.c')
-rw-r--r-- | libavcodec/vdpau.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index e222bdfcca..1645d255f2 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -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); |