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

demux_lavf: avoid deprecated "first_iformat" by using newer API

This commit is contained in:
Uoti Urpala 2010-11-06 04:00:10 +02:00
parent 393bb7bb98
commit b04c615959

View File

@ -133,9 +133,9 @@ static int64_t mp_read_seek(void *opaque, int stream_idx, int64_t ts, int flags)
}
static void list_formats(void) {
AVInputFormat *fmt;
mp_msg(MSGT_DEMUX, MSGL_INFO, "Available lavf input formats:\n");
for (fmt = first_iformat; fmt; fmt = fmt->next)
AVInputFormat *fmt = NULL;
while (fmt = av_iformat_next(fmt))
mp_msg(MSGT_DEMUX, MSGL_INFO, "%15s : %s\n", fmt->name, fmt->long_name);
}