summaryrefslogtreecommitdiffstats
path: root/video/decode/d3d.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-07 17:48:00 +0200
committerwm4 <wm4@nowhere>2016-04-07 17:48:00 +0200
commitf009d16f362694b6f49571b76f8b0331966824b5 (patch)
tree92851b786b11c32c0345cc1a803d58cc535a6219 /video/decode/d3d.h
parent32a92071b4cc58967d51a5e3ce1c3bed219d9111 (diff)
downloadmpv-f009d16f362694b6f49571b76f8b0331966824b5.tar.bz2
mpv-f009d16f362694b6f49571b76f8b0331966824b5.tar.xz
vd_lavc: fix codec vs. decoder confusion
Some functions which expected a codec name (i.e. the name of the video format itself) were passed a decoder name. Most "native" libavcodec decoders have the same name as the codec, so this was never an issue. This should mean that e.g. using "--vd=lavc:h264_mmal --hwdec=mmal" should now actually enable native surface mode (instead of doing copy- back).
Diffstat (limited to 'video/decode/d3d.h')
-rw-r--r--video/decode/d3d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/d3d.h b/video/decode/d3d.h
index 107a227579..bbd6bdfd2a 100644
--- a/video/decode/d3d.h
+++ b/video/decode/d3d.h
@@ -30,7 +30,7 @@ struct d3d_decoder_fmt {
DWORD dxfmt_decoded; // D3DFORMAT or DXGI_FORMAT
};
-int d3d_probe_codec(const char *decode);
+int d3d_probe_codec(const char *codec);
struct d3d_decoder_fmt d3d_select_decoder_mode(
struct lavc_ctx *s, const GUID *device_guids, UINT n_guids,
DWORD (*get_dxfmt_cb)(struct lavc_ctx *s, const GUID *guid, int depth));