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)
|
if (ret > 0)
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
if (!v->is_restart_needed)
|
if (c->is_live || v->cur_seq_no < v->last_seq_no) {
|
||||||
v->cur_seq_no++;
|
if (!v->is_restart_needed)
|
||||||
v->is_restart_needed = 1;
|
v->cur_seq_no++;
|
||||||
|
v->is_restart_needed = 1;
|
||||||
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue