From f009d16f362694b6f49571b76f8b0331966824b5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 Apr 2016 17:48:00 +0200 Subject: 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). --- video/decode/d3d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/decode/d3d.c') diff --git a/video/decode/d3d.c b/video/decode/d3d.c index 14d94384be..4737ebf1bc 100644 --- a/video/decode/d3d.c +++ b/video/decode/d3d.c @@ -97,9 +97,9 @@ static const struct d3dva_mode d3dva_modes[] = { #undef MODE #undef MODE2 -int d3d_probe_codec(const char *decoder) +int d3d_probe_codec(const char *codec) { - enum AVCodecID codec = mp_codec_to_av_codec_id(decoder); + enum AVCodecID codec = mp_codec_to_av_codec_id(codec); for (int i = 0; i < MP_ARRAY_SIZE(d3dva_modes); i++) { const struct d3dva_mode *mode = &d3dva_modes[i]; if (mode->codec == codec) -- cgit v1.2.3