Only output the display dimensions if they have been set (e.g. not on audio tracks).

This commit is contained in:
Moritz Bunkus 2005-08-30 10:53:36 +00:00
parent c6713105d0
commit 55bdf3bfbf

View File

@ -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 += "]";