summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthick J <kjeyapal@akamai.com>2019-04-17 11:26:07 +0530
committerKarthick J <kjeyapal@akamai.com>2019-04-22 11:31:25 +0530
commiteeca67e0232cc18c0a4b7c4bfa7ff4ee709078c2 (patch)
tree0d55ca2f46ff60242a64a4855b83ec4a90b562e2
parent613ca7b100acbce6728e9793cdb634c852d13900 (diff)
avformat/dashenc: Fix a bug with writing "final" manifest
This bug was introduced in the commit 951561b64ee6c11f01daedd9dcf73276cc1e765b
-rw-r--r--libavformat/dashenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 5f1333e436..b88d4b3496 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -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;