aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-25 05:32:20 +0100
committerJames Almer <jamrial@gmail.com>2021-04-27 10:43:13 -0300
commit14fa0a4efbc989619860ed8ec0fd33dcdae558b0 (patch)
tree291cd2ef68578516753fdc4d4488b2eb8bac453d /libavformat/avformat.h
parent420cedd49745b284c35d97b936b71ff79b43bdf7 (diff)
downloadffmpeg-14fa0a4efbc989619860ed8ec0fd33dcdae558b0.tar.gz
avformat/avformat: Constify AVFormatContext.*_codec pointers
This also allows to exclusively use pointers to const AVCodec in fftools/ffmpeg_opt.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 3834c9869f..23bdaa207b 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1598,7 +1598,7 @@ typedef struct AVFormatContext {
* the same codec_id.
* Demuxing: Set by user
*/
- AVCodec *video_codec;
+ const AVCodec *video_codec;
/**
* Forced audio codec.
@@ -1606,7 +1606,7 @@ typedef struct AVFormatContext {
* the same codec_id.
* Demuxing: Set by user
*/
- AVCodec *audio_codec;
+ const AVCodec *audio_codec;
/**
* Forced subtitle codec.
@@ -1614,7 +1614,7 @@ typedef struct AVFormatContext {
* the same codec_id.
* Demuxing: Set by user
*/
- AVCodec *subtitle_codec;
+ const AVCodec *subtitle_codec;
/**
* Forced data codec.
@@ -1622,7 +1622,7 @@ typedef struct AVFormatContext {
* the same codec_id.
* Demuxing: Set by user
*/
- AVCodec *data_codec;
+ const AVCodec *data_codec;
/**
* Number of bytes to be written as padding in a metadata header.