diff options
author | wm4 <wm4@nowhere> | 2015-12-18 02:04:40 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-18 03:59:52 +0100 |
commit | 5dd5dc66c174a5c3c4a8789572445466fd04f2e7 (patch) | |
tree | bcaec5551856c8dae22c5c17b021b4f624ddc53c /player | |
parent | 00135a87f04c1d288f8b75fe1df0a28531aced4e (diff) | |
download | mpv-5dd5dc66c174a5c3c4a8789572445466fd04f2e7.tar.bz2 mpv-5dd5dc66c174a5c3c4a8789572445466fd04f2e7.tar.xz |
sub: remove unused video width/height headers
Apparently, this was replaced by the SD_CTRL_SET_VIDEO_PARAMS set
dimensions. But I can't find out when this happened - possibly, these
fields were never used by sd_lavc.c, and only by the (long removed)
MPlayer dvdsub decoder.
Diffstat (limited to 'player')
-rw-r--r-- | player/sub.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/player/sub.c b/player/sub.c index c2a3e80cb3..9ec7ba5e7b 100644 --- a/player/sub.c +++ b/player/sub.c @@ -258,13 +258,10 @@ static void reinit_subdec(struct MPContext *mpctx, struct track *track, struct sh_video *sh_video = mpctx->d_video ? mpctx->d_video->header->video : NULL; - int w = sh_video ? sh_video->disp_w : 0; - int h = sh_video ? sh_video->disp_h : 0; float fps = sh_video ? sh_video->fps : 25; init_sub_renderer(mpctx); - sub_set_video_res(dec_sub, w, h); sub_set_video_fps(dec_sub, fps); sub_set_ass_renderer(dec_sub, mpctx->ass_library, mpctx->ass_renderer, &mpctx->ass_lock); |