1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

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;