diff options
author | Memphiz <memphis@machzwo.de> | 2013-06-17 22:26:08 +0200 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2013-06-17 22:26:08 +0200 |
commit | 4b316e65cd0440ae25238ac5cce5c4dd3fccd16a (patch) | |
tree | 6628035e6c65f981cf65bae1a5f3c35d5e65fcf1 /lib/ffmpeg/libavcodec | |
parent | 6a5c12ebdfe96acf01b9c42d4b123e1372b39b95 (diff) |
Revert "vaapi: don't unmap non-existing buffer"
This reverts commit c1597430e6d2dfd6b644be0345e0df9e0fe44336.
Diffstat (limited to 'lib/ffmpeg/libavcodec')
-rw-r--r-- | lib/ffmpeg/libavcodec/vaapi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/ffmpeg/libavcodec/vaapi.c b/lib/ffmpeg/libavcodec/vaapi.c index b991cde782..a220a9d3c2 100644 --- a/lib/ffmpeg/libavcodec/vaapi.c +++ b/lib/ffmpeg/libavcodec/vaapi.c @@ -46,10 +46,8 @@ 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) vaUnmapBuffer(vactx->display, vactx->pic_param_buf_id); va_buffers[n_va_buffers++] = vactx->pic_param_buf_id; - } if (vactx->iq_matrix_buf_id) { vaUnmapBuffer(vactx->display, vactx->iq_matrix_buf_id); |