diff options
-rw-r--r-- | libmpdemux/demux_ty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_ty.c b/libmpdemux/demux_ty.c index 955239ad2a..7ece4a8ed7 100644 --- a/libmpdemux/demux_ty.c +++ b/libmpdemux/demux_ty.c @@ -363,7 +363,7 @@ static int demux_ty_FindESHeader( unsigned char *header, unsigned char *buffer, int bufferSize ) { int count; - for( count = 0 ; count < bufferSize ; count++ ) + for( count = 0 ; count + 3 < bufferSize ; count++ ) { if ( buffer[ count + 0 ] == header[ 0 ] && buffer[ count + 1 ] == header[ 1 ] && |