From b04c615959e6dcd0bb6c5834510456211ff7ee60 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sat, 6 Nov 2010 04:00:10 +0200 Subject: demux_lavf: avoid deprecated "first_iformat" by using newer API --- libmpdemux/demux_lavf.c | 4 ++-- 1 file 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); } -- cgit v1.2.3