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:
parent
393bb7bb98
commit
b04c615959
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user