[vlc-devel] [PATCH] demux/ts: beatify warning digital format when dump invalid header of pes
wucan
can_wu at cnbvcom.com
Thu Oct 28 04:25:18 CEST 2010
Hello:
I had see these debug message in vlc output:
ts warning: invalid header [0x5b:83:4:1c] (pid: 102)
ts warning: invalid header [0x4d:29:e7:c9] (pid: 102)
ts warning: scrambled state changed on pid 102 (1->0)
ts warning: scrambled state changed on pid 102 (0->1)
ts warning: invalid header [0x98:d6:84:1a] (pid: 102)
ts warning: invalid header [0x8c:d7:49:f1] (pid: 102)
ts warning: invalid header [0xe1:6:85:25] (pid: 102)
ts warning: scrambled state changed on pid 102 (1->0)
ts warning: scrambled state changed on pid 102 (0->1)
ts warning: invalid header [0xae:87:3e:3] (pid: 102)
ts warning: invalid header [0xab:e8:57:c0] (pid: 102)
ts warning: invalid header [0x35:a6:3a:ab] (pid: 102)
The "invalid header" digital is not format with %02x, but %x, so please
apply this minor patch.
---------------------
From a0a1d77ccbd1660f61a11dd1a3387c7da71361e4 Mon Sep 17 00:00:00 2001
From: wucan <can_wu at cnbvcom.com>
Date: Thu, 28 Oct 2010 09:52:11 +0800
Subject: demux/ts: beatify warning digital format when dump invalid
header of pes
---
modules/demux/ts.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 61333a7..e6a0b14 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1680,7 +1680,7 @@ static void ParsePES( demux_t *p_demux, ts_pid_t
*pid )
if( header[0] != 0 || header[1] != 0 || header[2] != 1 )
{
if( !p_demux->p_sys->b_silent )
- msg_Warn( p_demux, "invalid header [0x%x:%x:%x:%x] (pid: %d)",
+ msg_Warn( p_demux, "invalid header [0x%02x:%02x:%02x:%02x]
(pid: %d)",
header[0], header[1],header[2],header[3],
pid->i_pid );
block_ChainRelease( p_pes );
return;
--
1.7.2.3.msysgit.0
More information about the vlc-devel
mailing list