summaryrefslogtreecommitdiffstats
path: root/video/decode/vdpau.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-19 21:33:18 +0200
committerwm4 <wm4@nowhere>2015-08-19 21:33:18 +0200
commitbffd78748fb7fb1248424b1d4d2d67eb31c8762f (patch)
tree92e1038645675c95d6fffb85b3a78ee5c299ee24 /video/decode/vdpau.c
parentcab1f6439c201d877e709c45bb6a119feddc6a53 (diff)
downloadmpv-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/vdpau.c')
-rw-r--r--video/decode/vdpau.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/video/decode/vdpau.c b/video/decode/vdpau.c
index dfa5164ae9..9a3e7e27cf 100644
--- a/video/decode/vdpau.c
+++ b/video/decode/vdpau.c
@@ -30,7 +30,7 @@ struct priv {
uint64_t preemption_counter;
};
-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)
{
struct priv *p = ctx->hwdec_priv;
@@ -44,8 +44,7 @@ static int init_decoder(struct lavc_ctx *ctx, int fmt, int w, int h)
AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH);
}
-static struct mp_image *allocate_image(struct lavc_ctx *ctx, int fmt,
- int w, int h)
+static struct mp_image *allocate_image(struct lavc_ctx *ctx, int w, int h)
{
struct priv *p = ctx->hwdec_priv;