Revert "vaapi: return early from ff_vaapi_render_picture() without picture"
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 17 Jun 2013 23:54:30 +0000 (01:54 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 17 Jun 2013 23:54:30 +0000 (01:54 +0200)
This reverts commit 4cbf245f2a2cd2170ca30b0788c2af5b506fe6d6.

I messed up the author information.

libavcodec/vaapi.c

index 94959bf..a220a9d 100644 (file)
@@ -46,9 +46,6 @@ int ff_vaapi_render_picture(struct vaapi_context *vactx, VASurfaceID surface)
     VABufferID va_buffers[3];
     unsigned int n_va_buffers = 0;
 
-    if (!vactx->pic_param_buf_id)
-        return 0;
-
     vaUnmapBuffer(vactx->display, vactx->pic_param_buf_id);
     va_buffers[n_va_buffers++] = vactx->pic_param_buf_id;