[vlc-commits] codec: ttml: ifdef debug code

Francois Cartegnie git at videolan.org
Mon Jan 23 12:26:05 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 23 12:17:21 2017 +0100| [3e1a8f29f4c3ed02f94fac1e052084a17eb1cb08] | committer: Francois Cartegnie

codec: ttml: ifdef debug code

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

 modules/codec/ttml/substtml.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/codec/ttml/substtml.c b/modules/codec/ttml/substtml.c
index e50bdc0..be4762f 100644
--- a/modules/codec/ttml/substtml.c
+++ b/modules/codec/ttml/substtml.c
@@ -37,6 +37,8 @@
 #include "substext.h"
 #include "ttml.h"
 
+//#define TTML_DEBUG
+
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
@@ -728,9 +730,11 @@ static subpicture_t *ParseBlock( decoder_t *p_dec, const block_t *p_block )
     tt_timings_Resolve( (tt_basenode_t *) p_rootnode, &temporal_extent,
                         &p_timings_array, &i_timings_count );
 
+#ifdef TTML_DEBUG
     for( size_t i=0; i<i_timings_count; i++ )
         printf("%ld ", p_timings_array[i]);
     printf("\n");
+#endif
 
     for( size_t i=0; i+1 < i_timings_count; i++ )
     {



More information about the vlc-commits mailing list