Commit 245a23e0 authored by Laurent Aimar's avatar Laurent Aimar

* asf: detect dump of broadcasted asf stream.

parent 1e8f8d5c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* libasf.c : * libasf.c :
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: libasf.c,v 1.16 2003/08/22 20:32:27 fenrir Exp $ * $Id: libasf.c,v 1.17 2003/08/24 15:05:27 fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
* This program is free software; you can redistribute it and/or modify * 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 ) ...@@ -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" ); msg_Warn( (vlc_object_t*)s, "Unknow Object found" );
break; 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 ) if( !b_seekable && p_root->p_hdr && p_root->p_data )
{ {
/* For unseekable stream it's enouth to play */ /* For unseekable stream it's enouth to play */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment