From 55bdf3bfbff98d19b2bdaa50c084f3148b830c00 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 30 Aug 2005 10:53:36 +0000 Subject: [PATCH] Only output the display dimensions if they have been set (e.g. not on audio tracks). --- src/input/r_matroska.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/input/r_matroska.cpp b/src/input/r_matroska.cpp index 383486ead..ddf43a4ff 100644 --- a/src/input/r_matroska.cpp +++ b/src/input/r_matroska.cpp @@ -2076,8 +2076,9 @@ kax_reader_c::identify() { if (tracks[i]->track_name != "") info += mxsprintf("track_name:%s ", escape(tracks[i]->track_name).c_str()); - info += mxsprintf("display_dimensions:%llux%llu ", - tracks[i]->v_dwidth, tracks[i]->v_dheight); + if ((0 != tracks[i]->v_dwidth) && (0 != tracks[i]->v_dheight)) + info += mxsprintf("display_dimensions:%llux%llu ", + tracks[i]->v_dwidth, tracks[i]->v_dheight); info += mxsprintf("default_track:%u ", tracks[i]->default_track ? 1 : 0); info += "]";