Commit 01d74c40 authored by sfan5's avatar sfan5 Committed by Steven Liu

dashdec: Avoid trying to read any segments beyond the last

Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 74b143d8
......@@ -1503,9 +1503,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment