git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1e8f8d5
)
* asf: detect dump of broadcasted asf stream.
author
Laurent Aimar
<fenrir@videolan.org>
Sun, 24 Aug 2003 15:05:27 +0000
(15:05 +0000)
committer
Laurent Aimar
<fenrir@videolan.org>
Sun, 24 Aug 2003 15:05:27 +0000
(15:05 +0000)
modules/demux/asf/libasf.c
patch
|
blob
|
history
diff --git
a/modules/demux/asf/libasf.c
b/modules/demux/asf/libasf.c
index
2b6f177
..
41bbb4a
100644
(file)
--- a/
modules/demux/asf/libasf.c
+++ b/
modules/demux/asf/libasf.c
@@
-2,7
+2,7
@@
* libasf.c :
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* libasf.c :
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: libasf.c,v 1.1
6 2003/08/22 20:32
:27 fenrir Exp $
+ * $Id: libasf.c,v 1.1
7 2003/08/24 15:05
:27 fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
@@
-754,6
+754,12
@@
asf_object_root_t *ASF_ReadObjectRoot( stream_t *s, int b_seekable )
msg_Warn( (vlc_object_t*)s, "Unknow Object found" );
break;
}
msg_Warn( (vlc_object_t*)s, "Unknow Object found" );
break;
}
+ if( p_obj->common.i_type == ASF_OBJECT_TYPE_DATA &&
+ p_obj->common.i_object_size <= 50 )
+ {
+ /* probably a dump of broadcasted asf */
+ break;
+ }
if( !b_seekable && p_root->p_hdr && p_root->p_data )
{
/* For unseekable stream it's enouth to play */
if( !b_seekable && p_root->p_hdr && p_root->p_data )
{
/* For unseekable stream it's enouth to play */