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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel