From 39630dc8b6c2241df9e0e6066e1bd858b864f7de Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 1 May 2021 21:53:56 +0200 Subject: build: address AVCodec, AVInputFormat, AVOutputFormat const warnings FFmpeg recently changed these to be const on their side. --- common/encode_lavc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/encode_lavc.h') diff --git a/common/encode_lavc.h b/common/encode_lavc.h index 06e7254e86..cc4030a292 100644 --- a/common/encode_lavc.h +++ b/common/encode_lavc.h @@ -41,7 +41,7 @@ struct encode_lavc_context { struct encode_opts *options; struct mp_log *log; struct encode_priv *priv; - AVOutputFormat *oformat; + const AVOutputFormat *oformat; const char *filename; // All entry points must be guarded with the lock. Functions called by @@ -71,7 +71,7 @@ struct encoder_context { struct mpv_global *global; struct encode_opts *options; struct mp_log *log; - AVOutputFormat *oformat; + const AVOutputFormat *oformat; // (avoid using this) struct encode_lavc_context *encode_lavc_ctx; -- cgit v1.2.3