From 813372d6e9e260ab886c014801b98976dcffa32c Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 Apr 2016 21:04:31 +0200 Subject: d3d: fix Windows build Commit f009d16f accidentally broke it. Thanks to RiCON for noticing and testing. --- video/decode/d3d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video') diff --git a/video/decode/d3d.c b/video/decode/d3d.c index 4737ebf1bc..35d1af9243 100644 --- a/video/decode/d3d.c +++ b/video/decode/d3d.c @@ -99,10 +99,10 @@ static const struct d3dva_mode d3dva_modes[] = { int d3d_probe_codec(const char *codec) { - enum AVCodecID codec = mp_codec_to_av_codec_id(codec); + enum AVCodecID codecid = 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) + if (mode->codec == codecid) return 0; } return HWDEC_ERR_NO_CODEC; -- cgit v1.2.3