diff options
author | wm4 <wm4@nowhere> | 2016-08-19 09:37:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-08-19 09:37:52 +0200 |
commit | 4e3663a2da5da33231ced7ae513c2a9017cd4298 (patch) | |
tree | e71fa5481cb4df5d364c3ba9c74cd442ced3ebd2 /player/video.c | |
parent | e6952c70532bbc491cbe1ec484030b101fc71b7d (diff) | |
download | mpv-4e3663a2da5da33231ced7ae513c2a9017cd4298.tar.bz2 mpv-4e3663a2da5da33231ced7ae513c2a9017cd4298.tar.xz |
vf_rotate: allow arbitrary rotation
vf_rotate selects the correct filter for 90° rotation, but it can be
extended to use lavfi's vf_rotate as fallback.
See #3434.
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/video.c b/player/video.c index 6373123407..fb4b41f718 100644 --- a/player/video.c +++ b/player/video.c @@ -217,8 +217,8 @@ static void filter_reconfig(struct MPContext *mpctx, struct vo_chain *vo_c) if (mpctx->opts->deinterlace >= 0) video_vf_vo_control(vo_c, VFCTRL_SET_DEINTERLACE, &(int){0}); - if (params.rotate && (params.rotate % 90 == 0)) { - if (!(vo_c->vo->driver->caps & VO_CAP_ROTATE90)) { + if (params.rotate) { + if (!(vo_c->vo->driver->caps & VO_CAP_ROTATE90) || params.rotate % 90) { // Try to insert a rotation filter. char *args[] = {"angle", "auto", NULL}; if (try_filter(vo_c, "rotate", "autorotate", args) < 0) |