summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-06 04:00:10 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-06 23:29:07 +0200
commitb04c615959e6dcd0bb6c5834510456211ff7ee60 (patch)
tree794c53ffacde27f000db8450d2b41f8af0bcc170
parent393bb7bb989d8939e2ff38b5eb6da5a797809a03 (diff)
downloadmpv-b04c615959e6dcd0bb6c5834510456211ff7ee60.tar.bz2
mpv-b04c615959e6dcd0bb6c5834510456211ff7ee60.tar.xz
demux_lavf: avoid deprecated "first_iformat" by using newer API
-rw-r--r--libmpdemux/demux_lavf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/demux_lavf.c b/libmpdemux/demux_lavf.c
index 8457c1d816..6eaae9065c 100644
--- a/libmpdemux/demux_lavf.c
+++ b/libmpdemux/demux_lavf.c
@@ -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);
}