summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/dec_video.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/dec_video.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/dec_video.h')
-rw-r--r--libmpcodecs/dec_video.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpcodecs/dec_video.h b/libmpcodecs/dec_video.h
index 60a9e5f2d2..f7210e02c3 100644
--- a/libmpcodecs/dec_video.h
+++ b/libmpcodecs/dec_video.h
@@ -46,6 +46,7 @@ void set_video_colorspace(struct sh_video *sh);
int set_rectangle(sh_video_t *sh_video, int param, int value);
int redraw_osd(struct sh_video *sh_video, struct osd_state *osd);
void resync_video_stream(sh_video_t *sh_video);
+void video_reset_aspect(struct sh_video *sh_video);
int get_current_video_decoder_lag(sh_video_t *sh_video);
extern int divx_quality;