mirror of https://git.ffmpeg.org/ffmpeg.git
dashdec: Avoid trying to read any segments beyond the last
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
74b143d81f
commit
01d74c4055
|
@ -1503,9 +1503,11 @@ restart:
|
|||
if (ret > 0)
|
||||
goto end;
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue