[vlc-devel] commit: Fix reading ASX playlist when its size is unknown ( Przemyslaw Fiala )

git version control git at videolan.org
Mon Jul 7 10:27:50 CEST 2008


vlc | branch: master | Przemyslaw Fiala <bl4 at playker.info> | Sun Jul  6 22:39:24 2008 +0200| [2156e762339d33715d9d5026b2c720888976b522]

Fix reading ASX playlist when its size is unknown

Signed-off-by: Antoine Cellerier <dionoea at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2156e762339d33715d9d5026b2c720888976b522
---

 modules/demux/playlist/asx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/playlist/asx.c b/modules/demux/playlist/asx.c
index 49e1dc4..0af2d4c 100644
--- a/modules/demux/playlist/asx.c
+++ b/modules/demux/playlist/asx.c
@@ -247,7 +247,7 @@ static int Demux( demux_t *p_demux )
         for( ;; )
         {
             int i_read = stream_Read( p_demux->s, &p_sys->psz_data[i_pos], p_sys->i_data_len - i_pos );
-            p_sys->psz_data[i_read] = '\0';
+            p_sys->psz_data[i_pos + i_read] = '\0';
 
             if( i_read < p_sys->i_data_len - i_pos ) break; /* Done */
 




More information about the vlc-devel mailing list