Browse Source

demux: asf: improve objects debugging

pull/118/head
Francois Cartegnie 5 years ago
parent
commit
d2e893f69c
  1. 4
      modules/demux/asf/asfpacket.c
  2. 4
      modules/demux/asf/libasf.c

4
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;
}

4
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;
}

Loading…
Cancel
Save