]> git.sesse.net Git - ffmpeg/commitdiff
vaapi_decode: Remove vestigial unmap code
authorMark Thompson <sw@jkqxz.net>
Wed, 19 Oct 2016 22:47:55 +0000 (23:47 +0100)
committerMark Thompson <sw@jkqxz.net>
Mon, 24 Oct 2016 19:17:47 +0000 (20:17 +0100)
The buffer map/unmap code was in an early version of this before it
was committed, but the unmap was never removed.  While wrong, this
was harmless (and therefore unnoticed) because the buffers can't be
mapped at this point - all drivers just did nothing with the call.

libavcodec/vaapi_decode.c

index 9e1087ff3555558cf61f8158ad174fc4eed44fc5..b02f2b8cf318f5969423ef6bbd801c91bd3e9098 100644 (file)
@@ -150,14 +150,11 @@ int ff_vaapi_decode_issue(AVCodecContext *avctx,
 {
     VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
     VAStatus vas;
-    int err, i;
+    int err;
 
     av_log(avctx, AV_LOG_DEBUG, "Decode to surface %#x.\n",
            pic->output_surface);
 
-    for (i = 0; i < pic->nb_param_buffers; i++)
-        vaUnmapBuffer(ctx->hwctx->display, pic->param_buffers[i]);
-
     vas = vaBeginPicture(ctx->hwctx->display, ctx->va_context,
                          pic->output_surface);
     if (vas != VA_STATUS_SUCCESS) {