[MPlayer-dev-eng] [PATCH] Bug with the switch_ratio command

Ingo Brückl ib at wupperonline.de
Mon Jul 29 15:44:29 CEST 2013


I wrote on Mon, 29 Jul 2013 14:13:16 +0200:

> --- libmpcodecs/vd.c	(revision 36370)
> +++ libmpcodecs/vd.c	(working copy)
> @@ -292,6 +292,9 @@
>      }
>      // time to do aspect ratio corrections...
>
> +    if (!sh->original_aspect)
> +        sh->original_aspect = sh->aspect;

This assignment should rather be:

 +        sh->original_aspect = sh->stream_aspect != 0.0 ? sh->stream_aspect : sh->aspect;

although sh->aspect is set to the stream aspect in line 70 of vd_mpegpes.c
anyway? (Which means that sh->stream_aspect is obsolete? Maybe setting
stream_aspect in mplayer.c has some effect I currently don't see.)

Ingo


More information about the MPlayer-dev-eng mailing list