summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-05-01 21:53:56 +0200
committersfan5 <sfan5@live.de>2021-05-01 22:07:31 +0200
commit39630dc8b6c2241df9e0e6066e1bd858b864f7de (patch)
tree47e41a747f0597b9b3c0d061bef9c3051597684d /demux
parent02fbdf8aaffac527ce33c81ace001b48aee9e953 (diff)
downloadmpv-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')
-rw-r--r--demux/demux_lavf.c4
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;