mirror of https://github.com/mpv-player/mpv
av_common: minor simplification
This commit is contained in:
parent
a98f658d53
commit
e1d57504b3
|
@ -66,14 +66,8 @@ void mp_add_lavc_decoders(struct mp_decoder_list *list, enum AVMediaType type)
|
||||||
if (!cur)
|
if (!cur)
|
||||||
break;
|
break;
|
||||||
if (av_codec_is_decoder(cur) && cur->type == type) {
|
if (av_codec_is_decoder(cur) && cur->type == type) {
|
||||||
struct mp_decoder_entry entry = {
|
mp_add_decoder(list, "lavc", mp_codec_from_av_codec_id(cur->id),
|
||||||
.family = "lavc",
|
cur->name, cur->long_name);
|
||||||
.codec = mp_codec_from_av_codec_id(cur->id),
|
|
||||||
.decoder = cur->name,
|
|
||||||
.desc = cur->long_name,
|
|
||||||
};
|
|
||||||
assert(entry.family);
|
|
||||||
MP_TARRAY_APPEND(list, list->entries, list->num_entries, entry);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue