summaryrefslogtreecommitdiffstats
path: root/video/decode/vaapi.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-12 09:40:16 +0100
committerwm4 <wm4@nowhere>2017-01-12 13:58:28 +0100
commit26d25d567f49d0f98f7c21a18be7bd921e351f8d (patch)
treeddd2bed92d2ec16ab6d1da8dedcfbadc93a15b4f /video/decode/vaapi.c
parenta51e991b564113254d9262565ddb69e40e2fd726 (diff)
downloadmpv-26d25d567f49d0f98f7c21a18be7bd921e351f8d.tar.bz2
mpv-26d25d567f49d0f98f7c21a18be7bd921e351f8d.tar.xz
vaapi: properly set hw_subfmt field with new decode API
This fixes direct rendering with hwdec_vaegl.c. The code duplication between update_image_params() and mp_image_copy_fields_from_av_frame() is quite annoying, bit will have to be resolved in another commit.
Diffstat (limited to 'video/decode/vaapi.c')
-rw-r--r--video/decode/vaapi.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/video/decode/vaapi.c b/video/decode/vaapi.c
index 8d7af19bfa..bd84fcc253 100644
--- a/video/decode/vaapi.c
+++ b/video/decode/vaapi.c
@@ -101,12 +101,6 @@ static int init_decoder(struct lavc_ctx *ctx, int w, int h)
return 0;
}
-static struct mp_image *update_format(struct lavc_ctx *ctx, struct mp_image *img)
-{
- va_surface_init_subformat(img);
- return img;
-}
-
static void uninit(struct lavc_ctx *ctx)
{
struct priv *p = ctx->hwdec_priv;
@@ -222,7 +216,6 @@ const struct vd_lavc_hwdec mp_vd_lavc_vaapi = {
.init_decoder = init_decoder,
.lock = intel_shit_lock,
.unlock = intel_crap_unlock,
- .process_image = update_format,
};
const struct vd_lavc_hwdec mp_vd_lavc_vaapi_copy = {