You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
dashdec: Avoid trying to read any segments beyond the last
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user