]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/hlsenc.c
lavf/http.c: Free allocated client URLContext in case of error.
[ffmpeg] / libavformat / hlsenc.c
index c7540166ab89cfdbe6ffddbb5c384fafd4b20658..c27a66ea795b01a28a532a158198757c494e784a 100644 (file)
@@ -1591,9 +1591,14 @@ 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, "Encrypted fmp4 not yet supported\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");
+                  " ignoring -hls_enc\n");
         }
 
         if (!c->encrypt_started || (c->flags & HLS_PERIODIC_REKEY)) {