avformat/dashenc: Fix a bug with writing "final" manifest

This bug was introduced in the commit 951561b64e
This commit is contained in:
Karthick J 2019-04-17 11:26:07 +05:30
parent 613ca7b100
commit eeca67e023
1 changed files with 1 additions and 1 deletions

View 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;