[vlc-commits] MP4: debug the Matrix parameters for the tkhd atom

Jean-Baptiste Kempf git at videolan.org
Tue Jan 10 00:45:11 CET 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 10 00:42:26 2012 +0100| [a3f11b7f9cfe8fc3c6b88f4e3a94361aa2f334f0] | committer: Jean-Baptiste Kempf

MP4: debug the Matrix parameters for the tkhd atom

Ref #2882

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3f11b7f9cfe8fc3c6b88f4e3a94361aa2f334f0
---

 modules/demux/mp4/libmp4.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 3247bc1..e0b240a 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -642,7 +642,8 @@ static int MP4_ReadBox_tkhd(  stream_t *p_stream, MP4_Box_t *p_box )
     MP4_ConvertDate2Str( s_modification_time, p_box->data.p_mvhd->i_modification_time );
     MP4_ConvertDate2Str( s_duration, p_box->data.p_mvhd->i_duration );
 
-    msg_Dbg( p_stream, "read box: \"tkhd\" creation %s modification %s duration %s track ID %d layer %d volume %f width %f height %f",
+    msg_Dbg( p_stream, "read box: \"tkhd\" creation %s modification %s duration %s track ID %d layer %d volume %f width %f height %f. "
+            "Matrix: %i %i %i %i %i %i %i %i %i",
                   s_creation_time,
                   s_modification_time,
                   s_duration,
@@ -650,7 +651,16 @@ static int MP4_ReadBox_tkhd(  stream_t *p_stream, MP4_Box_t *p_box )
                   p_box->data.p_tkhd->i_layer,
                   (float)p_box->data.p_tkhd->i_volume / 256 ,
                   (float)p_box->data.p_tkhd->i_width / 65536,
-                  (float)p_box->data.p_tkhd->i_height / 65536 );
+                  (float)p_box->data.p_tkhd->i_height / 65536,
+                  p_box->data.p_tkhd->i_matrix[0],
+                  p_box->data.p_tkhd->i_matrix[1],
+                  p_box->data.p_tkhd->i_matrix[2],
+                  p_box->data.p_tkhd->i_matrix[3],
+                  p_box->data.p_tkhd->i_matrix[4],
+                  p_box->data.p_tkhd->i_matrix[5],
+                  p_box->data.p_tkhd->i_matrix[6],
+                  p_box->data.p_tkhd->i_matrix[7],
+                  p_box->data.p_tkhd->i_matrix[8] );
 #endif
     MP4_READBOX_EXIT( 1 );
 }



More information about the vlc-commits mailing list