diff libmpcodecs/vd_ffmpeg.c @ 36318:df2964c3d543

Const correctness fix.
author reimar
date Fri, 09 Aug 2013 20:10:54 +0000
parents 139f2b064ef9
children d649e84ea8d5
line wrap: on
line diff
--- 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) ||