[MPlayer-cvslog] r37870 - trunk/libmpdemux/demux_lavf.c

rtogni subversion at mplayerhq.hu
Fri May 20 23:25:20 CEST 2016


Author: rtogni
Date: Fri May 20 23:25:19 2016
New Revision: 37870

Log:
Fix playback of hls stream where url is longer than 256.

MPlayer was not able to update the m3u8 playlist when the lenght of the url is
greater than 256, because mp_filename array was only 256 bytes.
The patch simply increase the size of mp_filename to 2048, the value matches
the size used in ffmpeg url.

Patch by Lu Ran <hephooey gmail>

Modified:
   trunk/libmpdemux/demux_lavf.c

Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c	Sat May 14 21:27:04 2016	(r37869)
+++ trunk/libmpdemux/demux_lavf.c	Fri May 20 23:25:19 2016	(r37870)
@@ -530,7 +530,7 @@ static demuxer_t* demux_open_lavf(demuxe
     AVDictionaryEntry *t = NULL;
     lavf_priv_t *priv= demuxer->priv;
     int i;
-    char mp_filename[256]="mp:";
+    char mp_filename[2048]="mp:";
 
     stream_seek(demuxer->stream, 0);
 


More information about the MPlayer-cvslog mailing list