summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-11-14 20:12:20 +0200
committerUoti Urpala <uau@mplayer2.org>2011-11-14 20:24:39 +0200
commit3a39fc1feabf24a07084b4e1f68129c492e5d54a (patch)
tree9c2526b9dfb350b54bbc063870584b5d713cf2b7 /libmpcodecs/vd.h
parent7b9908dda875db404604e87c8b762784d4f774d1 (diff)
downloadmpv-3a39fc1feabf24a07084b4e1f68129c492e5d54a.tar.bz2
mpv-3a39fc1feabf24a07084b4e1f68129c492e5d54a.tar.xz
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.
Diffstat (limited to 'libmpcodecs/vd.h')
-rw-r--r--libmpcodecs/vd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpcodecs/vd.h b/libmpcodecs/vd.h
index 7591d6863f..8b0f9c1aea 100644
--- a/libmpcodecs/vd.h
+++ b/libmpcodecs/vd.h
@@ -50,6 +50,7 @@ extern const vd_functions_t *const mpcodecs_vd_drivers[];
#define VDCTRL_GET_EQUALIZER 7 // get color options (brightness,contrast etc)
#define VDCTRL_RESYNC_STREAM 8 // reset decode state after seeking
#define VDCTRL_QUERY_UNSEEN_FRAMES 9 // current decoder lag
+#define VDCTRL_RESET_ASPECT 10 // reinit filter/VO chain for new aspect ratio
// callbacks:
int mpcodecs_config_vo2(sh_video_t *sh, int w, int h,