Mercurial > mplayer.hg
comparison command.c @ 36295:0bd0297b073a
Handle special argument -1 to switch_ratio as intended.
Reset to the original aspect ratio that would have been used for
the very first rescaling rather than to the display size ratio.
This will now handle anamorphic videos correctly as well.
author | ib |
---|---|
date | Thu, 01 Aug 2013 21:18:14 +0000 |
parents | 9b4ba0fb999b |
children | 139f2b064ef9 |
comparison
equal
deleted
inserted
replaced
36294:a73127c786e8 | 36295:0bd0297b073a |
---|---|
2716 | 2716 |
2717 case MP_CMD_SWITCH_RATIO: | 2717 case MP_CMD_SWITCH_RATIO: |
2718 if (!sh_video) | 2718 if (!sh_video) |
2719 break; | 2719 break; |
2720 if (cmd->nargs == 0 || cmd->args[0].v.f == -1) | 2720 if (cmd->nargs == 0 || cmd->args[0].v.f == -1) |
2721 movie_aspect = (float) sh_video->disp_w / sh_video->disp_h; | 2721 movie_aspect = sh_video->original_aspect; |
2722 else | 2722 else |
2723 movie_aspect = cmd->args[0].v.f; | 2723 movie_aspect = cmd->args[0].v.f; |
2724 mpcodecs_config_vo(sh_video, sh_video->disp_w, sh_video->disp_h, 0); | 2724 mpcodecs_config_vo(sh_video, sh_video->disp_w, sh_video->disp_h, 0); |
2725 break; | 2725 break; |
2726 | 2726 |