summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-10-19 23:47:55 +0100
committerMark Thompson <sw@jkqxz.net>2016-10-24 20:17:47 +0100
commit0aec37e625821040c103641eec9c1e7a1efa2952 (patch)
treee772c0b63448b1a07cc11dc9d2f2875674228f64
parent5e879b54a3a46817ea6c8a95a9aecab1176418b9 (diff)
vaapi_decode: Remove vestigial unmap code
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.
-rw-r--r--libavcodec/vaapi_decode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
index 9e1087ff35..b02f2b8cf3 100644
--- a/libavcodec/vaapi_decode.c
+++ b/libavcodec/vaapi_decode.c
@@ -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) {