1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-26 01:23:17 +00:00

av_common: parent mp_get_lavf_demuxer contents to the list

The only usage of this function is freed in mpv's generic property code,
so no other changes are needed.
This commit is contained in:
Dudemanguy 2024-05-15 09:03:14 -05:00
parent 1e1e365c18
commit 406301f23d

View File

@ -265,7 +265,7 @@ char **mp_get_lavf_demuxers(void)
const AVInputFormat *cur = av_demuxer_iterate(&iter);
if (!cur)
break;
MP_TARRAY_APPEND(NULL, list, num, talloc_strdup(NULL, cur->name));
MP_TARRAY_APPEND(NULL, list, num, talloc_strdup(list, cur->name));
}
MP_TARRAY_APPEND(NULL, list, num, NULL);
return list;