Add pixel dimensions to identification output

This commit is contained in:
Moritz Bunkus 2012-01-04 15:46:34 +01:00
parent face853019
commit 329e944f9d
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-01-04 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: enhancement: Added video pixel dimensions to the
output of "--identify-verbose" for Matroska files.
2012-01-02 Moritz Bunkus <moritz@bunkus.org>
* Released v5.2.1.

View File

@ -2284,6 +2284,9 @@ kax_reader_c::identify() {
if (track->track_name != "")
verbose_info.push_back((boost::format("track_name:%1%") % escape(track->track_name)).str());
if ((0 != track->v_width) && (0 != track->v_height))
verbose_info.push_back((boost::format("pixel_dimensions:%1%x%2%") % track->v_width % track->v_height).str());
if ((0 != track->v_dwidth) && (0 != track->v_dheight))
verbose_info.push_back((boost::format("display_dimensions:%1%x%2%") % track->v_dwidth % track->v_dheight).str());