[FFmpeg-cvslog] mpegvideo_enc: add const to the AVCodec instance

Anton Khirnov git at videolan.org
Tue Mar 21 13:55:50 EET 2017


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Sep 21 20:06:11 2016 +0200| [6f733ecab6faff2a16534f2ce7d2ffd41c07846b] | committer: Anton Khirnov

mpegvideo_enc: add const to the AVCodec instance

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6f733ecab6faff2a16534f2ce7d2ffd41c07846b
---

 libavcodec/mpegvideo_enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index d738d06..46e2e2c 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1259,7 +1259,7 @@ static int encode_frame(AVCodecContext *c, AVFrame *frame)
 
 static int estimate_best_b_count(MpegEncContext *s)
 {
-    AVCodec *codec    = avcodec_find_encoder(s->avctx->codec_id);
+    const AVCodec *codec = avcodec_find_encoder(s->avctx->codec_id);
     AVCodecContext *c = avcodec_alloc_context3(NULL);
     const int scale = s->brd_scale;
     int i, j, out_size, p_lambda, b_lambda, lambda2;



More information about the ffmpeg-cvslog mailing list