]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/options.c
mp3enc: downgrade some errors in writing Xing frame to warnings
[ffmpeg] / libavcodec / options.c
index 8b1f6a3bc855ba50d750a958f1c6bad4a9218f9a..25018b9b9765c1093ea20cd59519da34e6828088 100644 (file)
@@ -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;