]> git.sesse.net Git - ffmpeg/commitdiff
avformat/dashenc: Disable streaming for webm output
authorKarthick J <kjeyapal@akamai.com>
Wed, 10 Apr 2019 06:36:40 +0000 (12:06 +0530)
committerKarthick J <kjeyapal@akamai.com>
Tue, 16 Apr 2019 10:29:05 +0000 (15:59 +0530)
Currently streaming for webm output doesn't work.
Disabling explicitly will make sure that the manifest will get generated correctly.

libavformat/dashenc.c

index 4585a462025a122c9fd49e1dee87ba6fde8b3c58..5f1333e43694bebebb6c262a94ed03419ef9cdf8 100644 (file)
@@ -1203,6 +1203,11 @@ static int dash_init(AVFormatContext *s)
                        "Override -init_seg_name and/or -media_seg_name and/or "
                        "-single_file_name to end with the extension .webm\n");
             }
+            if (c->streaming) {
+                // Streaming not supported as matroskaenc buffers internally before writing the output
+                av_log(s, AV_LOG_WARNING, "One or more streams in WebM output format. Streaming option will be ignored\n");
+                c->streaming = 0;
+            }
         }
 
         ctx->oformat = av_guess_format(os->format_name, NULL, NULL);