[vlc-commits] commit: stream_filter/httplive.c: off by one (Jean-Paul Saman )

git at videolan.org git at videolan.org
Fri Dec 31 17:55:46 CET 2010


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Fri Dec 31 11:13:57 2010 +0100| [7507a0f70c3ea934889933262a974bd029fa145f] | committer: Jean-Paul Saman 

stream_filter/httplive.c: off by one

Matching #EXT-* keywords was off by one for several.

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

 modules/stream_filter/httplive.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 8dffb67..4048a95 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -649,13 +649,13 @@ static void parse_M3U8ExtLine(stream_t *s, hls_stream_t *hls, char *line)
     {
         if (strncmp(line, "#EXT-X-TARGETDURATION", 21) == 0)
             parse_TargetDuration(s, hls, line);
-        else if (strncmp(line, "#EXT-X-MEDIA-SEQUENCE", 22) == 0)
+        else if (strncmp(line, "#EXT-X-MEDIA-SEQUENCE", 21) == 0)
             parse_MediaSequence(s, hls, line);
-        else if (strncmp(line, "#EXT-X-KEY", 11) == 0)
+        else if (strncmp(line, "#EXT-X-KEY", 10) == 0)
             parse_Key(s, hls, line);
-        else if (strncmp(line, "#EXT-X-PROGRAM-DATE-TIME", 25) == 0)
+        else if (strncmp(line, "#EXT-X-PROGRAM-DATE-TIME", 24) == 0)
             parse_ProgramDateTime(s, hls, line);
-        else if (strncmp(line, "#EXT-X-ALLOW-CACHE", 17) == 0)
+        else if (strncmp(line, "#EXT-X-ALLOW-CACHE", 18) == 0)
             parse_AllowCache(s, hls, line);
         else if (strncmp(line, "#EXT-X-DISCONTINUITY", 20) == 0)
             parse_Discontinuity(s, hls, line);



More information about the vlc-commits mailing list