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/sd_lavc.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/sd_lavc.c')
-rw-r--r-- | sub/sd_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c index 77877fdbd1..e8da942a76 100644 --- a/sub/sd_lavc.c +++ b/sub/sd_lavc.c @@ -91,7 +91,7 @@ static int init(struct sd *sd) struct sd_lavc_priv *priv = talloc_zero(NULL, struct sd_lavc_priv); AVCodecContext *ctx = NULL; - AVCodec *sub_codec = avcodec_find_decoder(cid); + const AVCodec *sub_codec = avcodec_find_decoder(cid); if (!sub_codec) goto error; ctx = avcodec_alloc_context3(sub_codec); |