diff options
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r-- | demux/demux_lavf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index cb6fbbc7c7..93117c975c 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -314,8 +314,9 @@ static int64_t mp_read_seek(void *opaque, int stream_idx, int64_t ts, int flags) static void list_formats(struct demuxer *demuxer) { MP_INFO(demuxer, "Available lavf input formats:\n"); - AVInputFormat *fmt = NULL; - while ((fmt = av_iformat_next(fmt))) + const AVInputFormat *fmt; + void *iter = NULL; + while ((fmt = av_demuxer_iterate(&iter))) MP_INFO(demuxer, "%15s : %s\n", fmt->name, fmt->long_name); } |