[FFmpeg-devel] [PATCH 3/3] lavf/hls: allow subtitles to be read despite incomplete handling

Rodger Combs rodger.combs at gmail.com
Mon Sep 21 04:55:35 CEST 2015


This will give incorrect results in some cases due to not parsing segments
separately, but it works well enough in general that it seems worth enabling.
---
 libavformat/hls.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index a5073ff..74af300 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -391,10 +391,6 @@ static struct rendition *new_rendition(HLSContext *c, struct rendition_info *inf
     if (type == AVMEDIA_TYPE_SUBTITLE && !info->uri[0])
         return NULL;
 
-    /* TODO: handle subtitles (each segment has to parsed separately) */
-    if (type == AVMEDIA_TYPE_SUBTITLE)
-        return NULL;
-
     rend = av_mallocz(sizeof(struct rendition));
     if (!rend)
         return NULL;
-- 
2.5.1



More information about the ffmpeg-devel mailing list