Skip to content
This repository
Browse code

Revert "vaapi: don't unmap non-existing buffer"

This reverts commit c159743.
  • Loading branch information...
commit 4b316e65cd0440ae25238ac5cce5c4dd3fccd16a 1 parent 6a5c12e
Memphiz authored June 17, 2013

Showing 1 changed file with 0 additions and 2 deletions. Show diff stats Hide diff stats

  1. 2  lib/ffmpeg/libavcodec/vaapi.c
2  lib/ffmpeg/libavcodec/vaapi.c
@@ -46,10 +46,8 @@ int ff_vaapi_render_picture(struct vaapi_context *vactx, VASurfaceID surface)
46 46
     VABufferID va_buffers[3];
47 47
     unsigned int n_va_buffers = 0;
48 48
 
49  
-    if (vactx->pic_param_buf_id)
50 49
     vaUnmapBuffer(vactx->display, vactx->pic_param_buf_id);
51 50
     va_buffers[n_va_buffers++] = vactx->pic_param_buf_id;
52  
-    }
53 51
 
54 52
     if (vactx->iq_matrix_buf_id) {
55 53
         vaUnmapBuffer(vactx->display, vactx->iq_matrix_buf_id);

0 notes on commit 4b316e6

Please sign in to comment.
Something went wrong with that request. Please try again.