mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-18 14:54:19 +08:00
libavformat: Rename the applehttp protocol to hls
Keep the old protocol name around for backwards compatibility until the next bump. Deprecate the method of implicitly assuming the nested protocol. For applehttp://server/path, it might have felt logical, but supporting hls://server/path isn't quite as intuitive. Therefore only support hls+http://server/path from now on. Using this protocol at all is discouraged, since the hls demuxer is more complete and fits into the architecture better. There have been cases where the protocol implementation worked better than the demuxer, but this should no longer be the case. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "rtp.h"
|
||||
#include "rdt.h"
|
||||
#include "url.h"
|
||||
#include "version.h"
|
||||
|
||||
#define REGISTER_MUXER(X,x) { \
|
||||
extern AVOutputFormat ff_##x##_muxer; \
|
||||
@@ -238,11 +239,14 @@ void av_register_all(void)
|
||||
REGISTER_MUXDEMUX (YUV4MPEGPIPE, yuv4mpegpipe);
|
||||
|
||||
/* protocols */
|
||||
#if FF_API_APPLEHTTP_PROTO
|
||||
REGISTER_PROTOCOL (APPLEHTTP, applehttp);
|
||||
#endif
|
||||
REGISTER_PROTOCOL (CONCAT, concat);
|
||||
REGISTER_PROTOCOL (CRYPTO, crypto);
|
||||
REGISTER_PROTOCOL (FILE, file);
|
||||
REGISTER_PROTOCOL (GOPHER, gopher);
|
||||
REGISTER_PROTOCOL (HLS, hls);
|
||||
REGISTER_PROTOCOL (HTTP, http);
|
||||
REGISTER_PROTOCOL (HTTPPROXY, httpproxy);
|
||||
REGISTER_PROTOCOL (HTTPS, https);
|
||||
|
Reference in New Issue
Block a user