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 /common/av_common.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 'common/av_common.c')
-rw-r--r-- | common/av_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/av_common.c b/common/av_common.c index 01428ff2f4..2eae8c4e3e 100644 --- a/common/av_common.c +++ b/common/av_common.c @@ -270,7 +270,7 @@ int mp_codec_to_av_codec_id(const char *codec) if (desc) id = desc->id; if (id == AV_CODEC_ID_NONE) { - AVCodec *avcodec = avcodec_find_decoder_by_name(codec); + const AVCodec *avcodec = avcodec_find_decoder_by_name(codec); if (avcodec) id = avcodec->id; } @@ -285,7 +285,7 @@ const char *mp_codec_from_av_codec_id(int codec_id) if (desc) name = desc->name; if (!name) { - AVCodec *avcodec = avcodec_find_decoder(codec_id); + const AVCodec *avcodec = avcodec_find_decoder(codec_id); if (avcodec) name = avcodec->name; } |