mpegvideo_enc: add const to the AVCodec instance

This commit is contained in:
Anton Khirnov 2016-09-21 20:06:11 +02:00
parent 6c09af7e46
commit 6f733ecab6
1 changed files with 1 additions and 1 deletions

View File

@ -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;