[FFmpeg-devel] [Patch] Prohibit Seeking on m3u8 files over http

Micah Galizia micahgalizia at gmail.com
Sun Dec 30 20:00:17 CET 2012


I have encountered problems trying to play HLS streams on certain servers
due to the "Range: " request header field used in http.c. When the server
sees this field for m3u8 files it responds with a 403. The HLS demuxer
prevents seeking for all requests it creates, however, the initial request
to the first m3u8 still goes through with the Range field.

Given that seeking doesn't really make sense for playlist files, would it
be acceptable to create a blacklist of file extensions that should not be
requested with this field?  I've attached a small patch to do the job.

"The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one."   --W. Stekel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_seek_m3u8.patch
Type: application/octet-stream
Size: 655 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121230/1304e946/attachment.obj>

More information about the ffmpeg-devel mailing list