diff options
author | Anton Khirnov | 2012-08-11 14:50:36 +0200 |
---|---|---|
committer | Anton Khirnov | 2012-08-18 08:48:30 +0200 |
commit | 0a0f19b577d54ff2e72cc9a0fe027952db83f332 (patch) | |
tree | 7feacb827e9003280811a46e759d5e32a2f9bc96 /libavcodec/options.c | |
parent | 15c71dfd03a699a9ce503bf061d58b88ec49d860 (diff) |
lavc: add const to AVCodec* function parameters.
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r-- | libavcodec/options.c | 6 |
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; |