summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-07 21:04:31 +0200
committerwm4 <wm4@nowhere>2016-04-07 21:04:31 +0200
commit813372d6e9e260ab886c014801b98976dcffa32c (patch)
tree867bafa6b818bfb2626b3c982e95c2bdd826fd75
parent081271949700849fa4b30e0ca4865ec93f09c5ae (diff)
downloadmpv-813372d6e9e260ab886c014801b98976dcffa32c.tar.bz2
mpv-813372d6e9e260ab886c014801b98976dcffa32c.tar.xz
d3d: fix Windows build
Commit f009d16f accidentally broke it. Thanks to RiCON for noticing and testing.
-rw-r--r--video/decode/d3d.c4
1 files changed, 2 insertions, 2 deletions
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;