From bffd78748fb7fb1248424b1d4d2d67eb31c8762f Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 19 Aug 2015 21:33:18 +0200 Subject: vd_lavc: remove unneeded hwdec parameters All hwdec backends now use a single pixel format, and the format is always checked. Also, the init_decoder callback is now mandatory. --- video/decode/vaapi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'video/decode/vaapi.c') diff --git a/video/decode/vaapi.c b/video/decode/vaapi.c index cace8e733e..33dfb365b8 100644 --- a/video/decode/vaapi.c +++ b/video/decode/vaapi.c @@ -179,7 +179,7 @@ static bool has_profile(VAProfile *va_profiles, int num_profiles, VAProfile p) return false; } -static int init_decoder(struct lavc_ctx *ctx, int fmt, int w, int h) +static int init_decoder(struct lavc_ctx *ctx, int w, int h) { void *tmp = talloc_new(NULL); @@ -270,8 +270,7 @@ error: return res; } -static struct mp_image *allocate_image(struct lavc_ctx *ctx, int format, - int w, int h) +static struct mp_image *allocate_image(struct lavc_ctx *ctx, int w, int h) { struct priv *p = ctx->hwdec_priv; -- cgit v1.2.3