Message ID | E978804F-8ED7-4262-90ED-ECE15289A86A@chinaffmpeg.org |
---|---|
State | New |
Headers | show |
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 1252d4156..af8ab5f2f 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1505,9 +1505,11 @@ restart: if (ret > 0) goto end; - if (!v->is_restart_needed) - v->cur_seq_no++; - v->is_restart_needed = 1; + if (c->is_live || v->cur_seq_no < v->last_seq_no) { + if (!v->is_restart_needed) + v->cur_seq_no++; + v->is_restart_needed = 1; + } end: return ret;