[vlc-devel] commit: real: Abort demuxing in case of error. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Aug 16 15:18:17 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Aug 16 15:21:14 2008 +0200| [4edae60cb92459ac7cb8aa27700eb9ab1cd54d9c] | committer: Pierre d'Herbemont
real: Abort demuxing in case of error.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4edae60cb92459ac7cb8aa27700eb9ab1cd54d9c
---
modules/demux/real.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/modules/demux/real.c b/modules/demux/real.c
index c07bde5..8dd214c 100644
--- a/modules/demux/real.c
+++ b/modules/demux/real.c
@@ -311,12 +311,16 @@ static int Demux( demux_t *p_demux )
p_sys->i_data_packets++;
- if( i_size == 0 ) return 0;
+ if( i_size == 0 )
+ {
+ msg_Err( p_demux, "Got a NUKK size to read. (Invalid format?)" );
+ return 1;
+ }
if( i_size > sizeof(p_sys->buffer) )
{
- msg_Err( p_demux, "Got a size to read bigger than our buffer. Ignoring current frame." );
- return 0;
+ msg_Err( p_demux, "Got a size to read bigger than our buffer. (Invalid format?)" );
+ return 1;
}
stream_Read( p_demux->s, p_sys->buffer, i_size );
More information about the vlc-devel
mailing list