[vlc-commits] demux: asf: improve objects debugging

Francois Cartegnie git at videolan.org
Tue Nov 17 13:13:34 CET 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 16 15:39:22 2020 +0100| [d2e893f69c7d5f7d7f2952cf695feca0fad144ee] | committer: Francois Cartegnie

demux: asf: improve objects debugging

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

 modules/demux/asf/asfpacket.c | 4 ++--
 modules/demux/asf/libasf.c    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/demux/asf/asfpacket.c b/modules/demux/asf/asfpacket.c
index 8fae789086..714d327fbe 100644
--- a/modules/demux/asf/asfpacket.c
+++ b/modules/demux/asf/asfpacket.c
@@ -458,8 +458,8 @@ int DemuxASFPacket( asf_packet_sys_t *p_packetsys,
     if( pkt.length > i_data_end ||
         i_read_pos > i_data_end - pkt.length )
     {
-        vlc_warning( p_packetsys->logger, "pkt size %"PRIu32" at %"PRIu64" does not fit data chunk",
-                  pkt.length, i_read_pos );
+        vlc_warning( p_packetsys->logger, "pkt size %"PRIu32" at %"PRIu64" does not fit data chunk size %"PRIu32,
+                  pkt.length, i_read_pos, i_data_packet_max );
         return 0;
     }
 
diff --git a/modules/demux/asf/libasf.c b/modules/demux/asf/libasf.c
index d949c4848b..055ea330fe 100644
--- a/modules/demux/asf/libasf.c
+++ b/modules/demux/asf/libasf.c
@@ -1526,7 +1526,7 @@ static int ASF_ReadObject( stream_t *s, asf_object_t *p_obj,
 
     if( ASF_ReadObjectCommon( s, p_obj ) )
     {
-        msg_Warn( s, "cannot read one asf object" );
+        msg_Warn( s, "cannot read one asf object at %"PRIu64, vlc_stream_Tell(s) );
         return VLC_EGENERIC;
     }
     p_obj->common.p_father = p_father;
@@ -1537,7 +1537,7 @@ static int ASF_ReadObject( stream_t *s, asf_object_t *p_obj,
 
     if( p_obj->common.i_object_size < ASF_OBJECT_COMMON_SIZE )
     {
-        msg_Warn( s, "found a corrupted asf object (size<24)" );
+        msg_Warn( s, "found a corrupted asf object (size<24) at %"PRIu64, vlc_stream_Tell(s) );
         return VLC_EGENERIC;
     }
 



More information about the vlc-commits mailing list