summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-02 17:34:02 +0100
committerwm4 <wm4@nowhere>2014-11-02 17:34:02 +0100
commit975e98b3fe003cb8d93d9eadc14d82e72c0f4e27 (patch)
tree103cbf874559eff06270919abbca3380a25ba191
parent969757baa0af99d905a9b8c99f0c92efa4e0fb33 (diff)
downloadmpv-975e98b3fe003cb8d93d9eadc14d82e72c0f4e27.tar.bz2
mpv-975e98b3fe003cb8d93d9eadc14d82e72c0f4e27.tar.xz
player: print anamorphic size only if video is anamorphic
Has been annoying me since forever.
-rw-r--r--player/video.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/player/video.c b/player/video.c
index 0a5fe521e8..f74bd4d9f5 100644
--- a/player/video.c
+++ b/player/video.c
@@ -761,8 +761,11 @@ void write_video(struct MPContext *mpctx, double endpts)
return;
const struct vo_driver *info = mpctx->video_out->driver;
- MP_INFO(mpctx, "VO: [%s] %dx%d => %dx%d %s\n",
- info->name, p.w, p.h, p.d_w, p.d_h, vo_format_name(p.imgfmt));
+ char extra[20] = {0};
+ if (p.w != p.d_w || p.h != p.d_h)
+ snprintf(extra, sizeof(extra), " => %dx%d", p.d_w, p.d_h);
+ MP_INFO(mpctx, "VO: [%s] %dx%d%s %s\n",
+ info->name, p.w, p.h, extra, vo_format_name(p.imgfmt));
MP_VERBOSE(mpctx, "VO: Description: %s\n", info->description);
int vo_r = vo_reconfig(vo, &p, 0);