diff options
author | wm4 <wm4@nowhere> | 2016-04-07 21:04:31 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-04-07 21:04:31 +0200 |
commit | 813372d6e9e260ab886c014801b98976dcffa32c (patch) | |
tree | 867bafa6b818bfb2626b3c982e95c2bdd826fd75 | |
parent | 081271949700849fa4b30e0ca4865ec93f09c5ae (diff) | |
download | mpv-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.c | 4 |
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; |