vaapi: return early from ff_vaapi_render_picture() without picture
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 17 Jun 2013 22:21:09 +0000 (00:21 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 17 Jun 2013 22:21:09 +0000 (00:21 +0200)
commit3cbf245f2a2cd2170ca30b0788c2af5b506fe6d6
treee7a3c609a00c040525baaf7cf99316e3a9bc492e
parentac604e446b5e0031fad42ab190cc2019a898c241
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
libavcodec/vaapi.c