diff options
author | sfan5 <sfan5@live.de> | 2021-05-01 21:53:56 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-05-01 22:07:31 +0200 |
commit | 39630dc8b6c2241df9e0e6066e1bd858b864f7de (patch) | |
tree | 47e41a747f0597b9b3c0d061bef9c3051597684d /demux/demux_lavf.c | |
parent | 02fbdf8aaffac527ce33c81ace001b48aee9e953 (diff) | |
download | mpv-39630dc8b6c2241df9e0e6066e1bd858b864f7de.tar.bz2 mpv-39630dc8b6c2241df9e0e6066e1bd858b864f7de.tar.xz |
build: address AVCodec, AVInputFormat, AVOutputFormat const warnings
FFmpeg recently changed these to be const on their side.
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r-- | demux/demux_lavf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 2c69de447c..71fb9fc289 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -227,7 +227,7 @@ typedef struct lavf_priv { bool own_stream; char *filename; struct format_hack format_hack; - AVInputFormat *avif; + const AVInputFormat *avif; int avif_flags; AVFormatContext *avfc; AVIOContext *pb; @@ -443,7 +443,7 @@ static int lavf_check_file(demuxer_t *demuxer, enum demux_check check) if (!lavfdopts->allow_mimetype || !mime_type) mime_type = ""; - AVInputFormat *forced_format = NULL; + const AVInputFormat *forced_format = NULL; const char *format = lavfdopts->format; if (!format) format = s->lavf_type; |