summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-04 14:11:07 +0200
committerwm4 <wm4@nowhere>2013-04-04 14:11:07 +0200
commite1d57504b3e48099f447842713e60f0eef0e04db (patch)
tree7b7061d493cb1bcaf4b1656f17fe248b3af3c6a9 /core
parenta98f658d53224f301211dd1ce1e9da5ee3cb042f (diff)
downloadmpv-e1d57504b3e48099f447842713e60f0eef0e04db.tar.bz2
mpv-e1d57504b3e48099f447842713e60f0eef0e04db.tar.xz
av_common: minor simplification
Diffstat (limited to 'core')
-rw-r--r--core/av_common.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/core/av_common.c b/core/av_common.c
index 14a7a6b089..bf1af853d9 100644
--- a/core/av_common.c
+++ b/core/av_common.c
@@ -66,14 +66,8 @@ void mp_add_lavc_decoders(struct mp_decoder_list *list, enum AVMediaType type)
if (!cur)
break;
if (av_codec_is_decoder(cur) && cur->type == type) {
- struct mp_decoder_entry entry = {
- .family = "lavc",
- .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);
+ mp_add_decoder(list, "lavc", mp_codec_from_av_codec_id(cur->id),
+ cur->name, cur->long_name);
}
}
}