From 706bb1d0c756be95e8646c6e433d5d24f7c75dca Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 12 Feb 2018 19:28:30 +0100 Subject: Fix recent FFmpeg deprecations This includes codec/muxer/demuxer iteration (different iteration function, registration functions deprecated), and the renaming of AVFormatContext.filename to url (plus making it a malloced string). Libav doesn't have the new API yet, so it will break. I hope they will add the new APIs too. --- demux/demux_lavf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'demux') 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); } -- cgit v1.2.3