diff options
author | wm4 <wm4@nowhere> | 2015-08-19 21:33:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-19 21:33:18 +0200 |
commit | bffd78748fb7fb1248424b1d4d2d67eb31c8762f (patch) | |
tree | 92e1038645675c95d6fffb85b3a78ee5c299ee24 /video/decode/vaapi.c | |
parent | cab1f6439c201d877e709c45bb6a119feddc6a53 (diff) | |
download | mpv-bffd78748fb7fb1248424b1d4d2d67eb31c8762f.tar.bz2 mpv-bffd78748fb7fb1248424b1d4d2d67eb31c8762f.tar.xz |
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.
Diffstat (limited to 'video/decode/vaapi.c')
-rw-r--r-- | video/decode/vaapi.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |