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 /sub/lavc_conv.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 'sub/lavc_conv.c')
-rw-r--r-- | sub/lavc_conv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/lavc_conv.c b/sub/lavc_conv.c index d47b0c4c07..8e1d1aad7f 100644 --- a/sub/lavc_conv.c +++ b/sub/lavc_conv.c @@ -75,7 +75,7 @@ struct lavc_conv *lavc_conv_create(struct mp_log *log, const char *codec_name, AVCodecContext *avctx = NULL; AVDictionary *opts = NULL; const char *fmt = get_lavc_format(priv->codec); - AVCodec *codec = avcodec_find_decoder(mp_codec_to_av_codec_id(fmt)); + const AVCodec *codec = avcodec_find_decoder(mp_codec_to_av_codec_id(fmt)); if (!codec) goto error; avctx = avcodec_alloc_context3(codec); |