From 245a23e0fd4464a6972f8b1ed8770673f96fe710 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sun, 24 Aug 2003 15:05:27 +0000 Subject: [PATCH] * asf: detect dump of broadcasted asf stream. --- modules/demux/asf/libasf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/demux/asf/libasf.c b/modules/demux/asf/libasf.c index 2b6f177b38..41bbb4a4b3 100644 --- a/modules/demux/asf/libasf.c +++ b/modules/demux/asf/libasf.c @@ -2,7 +2,7 @@ * libasf.c : ***************************************************************************** * 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 * * 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; } + 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 */ -- 2.20.1