vaapi: return early from ff_vaapi_render_picture() without picture
authorJanne Grunau <janne-libav@jannau.net>
Mon, 17 Jun 2013 23:56:06 +0000 (01:56 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 17 Jun 2013 23:56:06 +0000 (01:56 +0200)
commit2ee380aefbb92c89e8e9c7aa5846aa404919ec7c
treee7a3c609a00c040525baaf7cf99316e3a9bc492e
parent28bf0d94aaf577e3ff593cfaa831f467cf2568e2
vaapi: return early from ff_vaapi_render_picture() without picture

Fixes an assertion when called on uninitialized frame. Spotted after
seeking in vlc.
Fixes ticket #2461.

Tested-by: Timo
Reviewed-by: Joakim Plate
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
libavcodec/vaapi.c