aboutsummaryrefslogtreecommitdiff
path: root/lib/ffmpeg/libavcodec
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2013-06-17 22:26:08 +0200
committerMemphiz <memphis@machzwo.de>2013-06-17 22:26:08 +0200
commit4b316e65cd0440ae25238ac5cce5c4dd3fccd16a (patch)
tree6628035e6c65f981cf65bae1a5f3c35d5e65fcf1 /lib/ffmpeg/libavcodec
parent6a5c12ebdfe96acf01b9c42d4b123e1372b39b95 (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.c2
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);