# HG changeset patch # User mosu # Date 1052234881 0 # Node ID 312eb2923169e3fac55364384d177acdfc50585d # Parent 7c13793dbfa00f2cee7dffc88f19c93d3e60bd1b Made the decoder honor the aspect ratio set by the container (if it was set at all). diff -r 7c13793dbfa0 -r 312eb2923169 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Tue May 06 10:36:32 2003 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Tue May 06 15:28:01 2003 +0000 @@ -347,6 +347,7 @@ mp_msg(MSGT_DECVIDEO, MSGL_V, "[ffmpeg] aspect_ratio: %f\n", avctx->aspect_ratio); ctx->last_aspect = avctx->aspect_ratio; // if(ctx->last_aspect>=0.01 && ctx->last_aspect<100) + if(sh->aspect==0.0) sh->aspect = ctx->last_aspect; sh->disp_w = avctx->width; sh->disp_h = avctx->height;