Skip to content

Commit

Permalink
Revert "vaapi: don't unmap non-existing buffer"
Browse files Browse the repository at this point in the history
This reverts commit c159743.
  • Loading branch information
Memphiz committed Jun 17, 2013
1 parent 6a5c12e commit 4b316e6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/ffmpeg/libavcodec/vaapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b316e6

Please sign in to comment.