[vlc-devel] commit: Imroved cc.h fprintf debug (commented out by default). ( Laurent Aimar )
git version control
git at videolan.org
Mon Feb 9 21:09:09 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Feb 9 20:04:00 2009 +0100| [cf6d7ded81b8ba976d19f3a8e6a64be8050c3ace] | committer: Laurent Aimar
Imroved cc.h fprintf debug (commented out by default).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf6d7ded81b8ba976d19f3a8e6a64be8050c3ace
---
modules/codec/cc.h | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/codec/cc.h b/modules/codec/cc.h
index 11fe529..f0bd991 100644
--- a/modules/codec/cc.h
+++ b/modules/codec/cc.h
@@ -206,9 +206,12 @@ static inline void cc_Extract( cc_data_t *c, const uint8_t *p_src, int i_src )
{
#if 0
#define V(x) ( ( x < 0x20 || x >= 0x7f ) ? '?' : x )
- fprintf( stderr, "-------------- unknown user data %2.2x %2.2x %2.2x %2.2x %c%c%c%c\n",
- p_src[0], p_src[1], p_src[2], p_src[3],
- V(p_src[0]), V(p_src[1]), V(p_src[2]), V(p_src[3]) );
+ fprintf( stderr, "-------------- unknown user data " );
+ for( int i = 0; i < i_src; i++ )
+ fprintf( stderr, "%2.2x ", p_src[i] );
+ for( int i = 0; i < i_src; i++ )
+ fprintf( stderr, "%c ", V(p_src[i]) );
+ fprintf( stderr, "\n" );
#undef V
#endif
/* TODO DVD CC, ... */
More information about the vlc-devel
mailing list