# HG changeset patch # User reimar # Date 1376079054 0 # Node ID df2964c3d5437803c2d06b3ece09f81136e829c2 # Parent 56f576e4a49d9854f88ab83d992116ddcd164e89 Const correctness fix. diff -r 56f576e4a49d -r df2964c3d543 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Wed Aug 07 21:06:59 2013 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Fri Aug 09 20:10:54 2013 +0000 @@ -496,7 +496,7 @@ static void update_configuration(sh_video_t *sh, enum AVPixelFormat pix_fmt) { vd_ffmpeg_ctx *ctx = sh->context; - const AVCodecContext *avctx = ctx->avctx; + AVCodecContext *avctx = ctx->avctx; // it is possible another vo buffers to be used after vo config() // lavc reset its buffers on width/heigh change but not on aspect change!!! if (av_cmp_q(avctx->sample_aspect_ratio, ctx->last_sample_aspect_ratio) ||