aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-21 12:55:40 +0100
committerClément Bœsch <u@pkh.me>2017-03-21 12:55:40 +0100
commit70ca9b76e2afb6dc89e0ffdb2753237ed5290009 (patch)
treecb0cfe98049f27b311a6bde9fae74f498beea7f6
parent81dc9b77a7577eef1a5da4ff1df9c85a96cbba54 (diff)
parent6f733ecab6faff2a16534f2ce7d2ffd41c07846b (diff)
downloadffmpeg-70ca9b76e2afb6dc89e0ffdb2753237ed5290009.tar.gz
Merge commit '6f733ecab6faff2a16534f2ce7d2ffd41c07846b'
* commit '6f733ecab6faff2a16534f2ce7d2ffd41c07846b': mpegvideo_enc: add const to the AVCodec instance Merged-by: Clément Bœsch <u@pkh.me>
-rw-r--r--libavcodec/mpegvideo_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 0e4cbe8682..8051605ddd 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1447,7 +1447,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;