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
1 changed files with 2 additions and 2 deletions

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);
}