diff options
author | wm4 <wm4@nowhere> | 2016-01-14 00:18:31 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-14 00:18:31 +0100 |
commit | bf13bd0d47e5fc6761c51c6ba7056968e60bf4cd (patch) | |
tree | a031821a03564128a5e0dabb0a33361fd56b0e07 /player/sub.c | |
parent | dd973da108165ebb95e856dbc82326cb35fb45a5 (diff) | |
download | mpv-bf13bd0d47e5fc6761c51c6ba7056968e60bf4cd.tar.bz2 mpv-bf13bd0d47e5fc6761c51c6ba7056968e60bf4cd.tar.xz |
video: refactor: handle video format fixups closer to decoder
Instead of handling this on filter chain reinit, do it directly after
the decoder. This makes the code less entangled. In particular, this
gets rid of the really weird "override params" concept in the video
filter code.
The last_format/fixed_formats have some redundance with decoder_output,
but unfortunately the latter has a slightly different use.
Diffstat (limited to 'player/sub.c')
-rw-r--r-- | player/sub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/sub.c b/player/sub.c index 0492be4bc8..c20df53c60 100644 --- a/player/sub.c +++ b/player/sub.c @@ -78,7 +78,7 @@ static bool update_subtitle(struct MPContext *mpctx, double video_pts, int order return true; if (mpctx->d_video) { - struct mp_image_params params = mpctx->d_video->vfilter->override_params; + struct mp_image_params params = mpctx->d_video->vfilter->input_params; if (params.imgfmt) sub_control(dec_sub, SD_CTRL_SET_VIDEO_PARAMS, ¶ms); } |