[FFmpeg-devel] [PATCH] avformat/hlsenc: add error message for encrypt fmp4 mode
Steven Liu
lq at chinaffmpeg.org
Mon Apr 16 08:44:11 EEST 2018
hlsenc have not support encrypty fmp4 yet now.
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
libavformat/hlsenc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index c7540166ab..5c9e646962 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1591,6 +1591,11 @@ static int hls_start(AVFormatContext *s, VariantStream *vs)
}
if (c->key_info_file || c->encrypt) {
+ if (c->segment_type == SEGMENT_TYPE_FMP4) {
+ av_log(s, AV_LOG_ERROR, "have not support encrypt fmp4 now\n");
+ return AVERROR_PATCHWELCOME;
+ }
+
if (c->key_info_file && c->encrypt) {
av_log(s, AV_LOG_WARNING, "Cannot use both -hls_key_info_file and -hls_enc,"
" will use -hls_key_info_file priority\n");
--
2.15.1
More information about the ffmpeg-devel
mailing list