summaryrefslogtreecommitdiffstats
path: root/common/encode_lavc.h
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 /common/encode_lavc.h
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 'common/encode_lavc.h')
-rw-r--r--common/encode_lavc.h4
1 files changed, 2 insertions, 2 deletions
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;