From 3a39fc1feabf24a07084b4e1f68129c492e5d54a Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Mon, 14 Nov 2011 20:12:20 +0200 Subject: commands, vd_ffmpeg: fix switch_ratio slave command The implementation of the switch_ratio command was hacky and called mpcodecs_config_vo() to reconfigure the filter/VO chain from under an existing decoder. This call no longer worked properly with vd_ffmpeg after that started using mpcodec_config_vo2(). Add new video decoder control command VDCTRL_RESET_ASPECT and use this to tell vd_ffmpeg to reinitialize the output chain properly. --- command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'command.c') diff --git a/command.c b/command.c index bdb9343187..d5ab987baf 100644 --- a/command.c +++ b/command.c @@ -2948,7 +2948,7 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) opts->movie_aspect = (float) sh_video->disp_w / sh_video->disp_h; else opts->movie_aspect = cmd->args[0].v.f; - mpcodecs_config_vo(sh_video, sh_video->disp_w, sh_video->disp_h, 0); + video_reset_aspect(sh_video); break; case MP_CMD_SPEED_INCR: { -- cgit v1.2.3