1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00

d3d: fix Windows build

Commit f009d16f accidentally broke it.

Thanks to RiCON for noticing and testing.
This commit is contained in:
wm4 2016-04-07 21:04:31 +02:00
parent 0812719497
commit 813372d6e9

View File

@ -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;