diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-09-21 20:06:11 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-09-28 10:01:52 +0200 |
commit | 6f733ecab6faff2a16534f2ce7d2ffd41c07846b (patch) | |
tree | b37e4f192fefb02da3ba0d59a68e34c40b15fa28 | |
parent | 6c09af7e46a5a1ada67ffe832f7895cf2749130b (diff) |
mpegvideo_enc: add const to the AVCodec instance
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index d738d06ee6..46e2e2c3fc 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; |