]> git.sesse.net Git - ffmpeg/commit
avformat/hls: ignore http_persistent for segments requring crypto
authorAman Gupta <aman@tmm1.net>
Fri, 29 Dec 2017 23:30:55 +0000 (15:30 -0800)
committerAman Gupta <aman@tmm1.net>
Sun, 31 Dec 2017 05:07:55 +0000 (21:07 -0800)
commit97b89432e4566a5d620f97bfdf4c8ae9c83d94e8
tree873b348200100758571264c7caace25f14021d11
parent903be5e4f66268273dc6e3c42a7fdeaab32066ef
avformat/hls: ignore http_persistent for segments requring crypto

Encrypted HLS segments have regular http:// urls, but open_input()
actually prefixes them with crypto+ before calling open_url(), so
they end up using the crypto protocol and not the http protocol.

This means invoking ff_http_do_new_request will fail, so we avoid
calling it in the first place. After the earlier http.c commit,
the failure results in a warning printed to the user. In earlier
versions, the failure would cause a segfault.

Signed-off-by: Aman Gupta <aman@tmm1.net>
libavformat/hls.c