]> git.sesse.net Git - ffmpeg/commitdiff
avformat/dashenc: Fix a bug with writing "final" manifest
authorKarthick J <kjeyapal@akamai.com>
Wed, 17 Apr 2019 05:56:07 +0000 (11:26 +0530)
committerKarthick J <kjeyapal@akamai.com>
Mon, 22 Apr 2019 06:01:25 +0000 (11:31 +0530)
This bug was introduced in the commit 951561b64ee6c11f01daedd9dcf73276cc1e765b

libavformat/dashenc.c

index 5f1333e43694bebebb6c262a94ed03419ef9cdf8..b88d4b349604c629f28aa1e0bfac086c6b0a70e5 100644 (file)
@@ -1631,7 +1631,7 @@ static int dash_flush(AVFormatContext *s, int final, int stream)
         }
     }
     if (ret >= 0) {
-        if (c->has_video) {
+        if (c->has_video && !final) {
             c->nr_of_streams_flushed++;
             if (c->nr_of_streams_flushed != c->nr_of_streams_to_flush)
                 return ret;