Index: libmpcodecs/vd_ffmpeg.c =================================================================== --- libmpcodecs/vd_ffmpeg.c (Revision 22268) +++ libmpcodecs/vd_ffmpeg.c (Arbeitskopie) @@ -51,6 +51,7 @@ double inv_qp_sum; int ip_count; int b_count; + AVRational last_sample_aspect_ratio; } vd_ffmpeg_ctx; //#ifdef USE_LIBPOSTPROC @@ -498,16 +499,17 @@ // 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 (// aspect != ctx->last_aspect || + if (av_cmp_q(avctx->sample_aspect_ratio, ctx->last_sample_aspect_ratio) || width != sh->disp_w || height != sh->disp_h || pix_fmt != ctx->pix_fmt || !ctx->vo_inited) { mp_msg(MSGT_DECVIDEO, MSGL_V, "[ffmpeg] aspect_ratio: %f\n", aspect); + ctx->last_sample_aspect_ratio = avctx->sample_aspect_ratio; ctx->last_aspect = aspect; // if(ctx->last_aspect>=0.01 && ctx->last_aspect<100) - if(sh->aspect==0.0) +// if(sh->aspect==0.0) sh->aspect = ctx->last_aspect; sh->disp_w = width; sh->disp_h = height;