Browse Source

dashdec: Avoid trying to read any segments beyond the last

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
tags/n4.0
sfan5 Steven Liu 7 years ago
parent
commit
01d74c4055
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      libavformat/dashdec.c

+ 5
- 3
libavformat/dashdec.c View File

@@ -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;


Loading…
Cancel
Save