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

This bug was introduced in the commit 951561b64e
pull/310/head
Karthick J 6 years ago
parent 613ca7b100
commit eeca67e023
  1. 2
      libavformat/dashenc.c

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

Loading…
Cancel
Save