summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-26 17:30:01 +0200
committerwm4 <wm4@nowhere>2013-09-26 17:33:57 +0200
commit5a837ced0ba37b4399ecdf9500637a628b599f0d (patch)
treebc1cece3d74b0de685e58895a94819af7fe5b245 /video
parent9a55c4e70cebe6da6b7c7796119f84c4c9ad2a60 (diff)
downloadmpv-5a837ced0ba37b4399ecdf9500637a628b599f0d.tar.bz2
mpv-5a837ced0ba37b4399ecdf9500637a628b599f0d.tar.xz
video: let sh_video->disp_w/h always be container size
Nothing really accesses it. Subtitle initialization actually does in a somewhat meaningful way, but there container size is probably fine, as subtitles were always initialized before the first video frame was decoded.
Diffstat (limited to 'video')
-rw-r--r--video/decode/vd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/video/decode/vd.c b/video/decode/vd.c
index 574f0468d4..c8c9be3e72 100644
--- a/video/decode/vd.c
+++ b/video/decode/vd.c
@@ -58,12 +58,9 @@ int mpcodecs_reconfig_vo(sh_video_t *sh, const struct mp_image_params *params)
sh->vf_reconfig_count++;
- sh->disp_w = p.w;
- sh->disp_h = p.h;
-
mp_msg(MSGT_DECVIDEO, MSGL_V,
"VIDEO: %dx%d %5.3f fps %5.1f kbps (%4.1f kB/s)\n",
- sh->disp_w, sh->disp_h, sh->fps, sh->i_bps * 0.008,
+ p.w, p.h, sh->fps, sh->i_bps * 0.008,
sh->i_bps / 1000.0);
mp_msg(MSGT_DECVIDEO, MSGL_V, "VDec: vo config request - %d x %d (%s)\n",