summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-08-13 11:28:10 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-08-14 11:35:30 +0200
commit2d3acbfe8c4f54f44edb66298954a0233d819a16 (patch)
treeae0cc98f036042886e5dd2679f71c0fa9991eda0 /libavcodec
parent9bb936a80e72ae3439ded56f08f3d558700537c2 (diff)
lavc: add const to AVCodecContext.codec_descriptor.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h6
-rw-r--r--libavcodec/utils.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index f739acd8ca..07a9e10516 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3042,7 +3042,7 @@ typedef struct AVCodecContext {
* - encoding: unused.
* - decoding: set by libavcodec.
*/
- AVCodecDescriptor *codec_descriptor;
+ const AVCodecDescriptor *codec_descriptor;
/**
* Current statistics for PTS correction.
@@ -3058,8 +3058,8 @@ typedef struct AVCodecContext {
AVRational av_codec_get_pkt_timebase (const AVCodecContext *avctx);
void av_codec_set_pkt_timebase (AVCodecContext *avctx, AVRational val);
-AVCodecDescriptor *av_codec_get_codec_descriptor(const AVCodecContext *avctx);
-void av_codec_set_codec_descriptor(AVCodecContext *avctx, AVCodecDescriptor *desc);
+const AVCodecDescriptor *av_codec_get_codec_descriptor(const AVCodecContext *avctx);
+void av_codec_set_codec_descriptor(AVCodecContext *avctx, const AVCodecDescriptor *desc);
/**
* AVProfile.
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 03caf1c026..7608551036 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -712,7 +712,7 @@ MAKE_ACCESSORS(AVFrame, frame, AVDictionary *, metadata)
MAKE_ACCESSORS(AVFrame, frame, int, decode_error_flags)
MAKE_ACCESSORS(AVCodecContext, codec, AVRational, pkt_timebase)
-MAKE_ACCESSORS(AVCodecContext, codec, AVCodecDescriptor*, codec_descriptor)
+MAKE_ACCESSORS(AVCodecContext, codec, const AVCodecDescriptor *, codec_descriptor)
static void avcodec_get_subtitle_defaults(AVSubtitle *sub)
{