summaryrefslogtreecommitdiff
path: root/libavcodec/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r--libavcodec/options.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 8b1f6a3bc8..25018b9b97 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -77,7 +77,8 @@ static const AVClass av_codec_context_class = {
.child_class_next = codec_child_class_next,
};
-int avcodec_get_context_defaults3(AVCodecContext *s, AVCodec *codec){
+int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec)
+{
memset(s, 0, sizeof(AVCodecContext));
s->av_class = &av_codec_context_class;
@@ -122,7 +123,8 @@ int avcodec_get_context_defaults3(AVCodecContext *s, AVCodec *codec){
return 0;
}
-AVCodecContext *avcodec_alloc_context3(AVCodec *codec){
+AVCodecContext *avcodec_alloc_context3(const AVCodec *codec)
+{
AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext));
if(avctx==NULL) return NULL;