diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index c6dddeb98f..fe6d95102b 100644
|
a
|
b
|
static int64_t calc_cur_seg_no(AVFormatContext *s, struct representation *pls)
|
| 1294 | 1294 | num += pls->first_seq_no; |
| 1295 | 1295 | } else if (pls->fragment_duration){ |
| 1296 | 1296 | if (pls->presentation_timeoffset) { |
| 1297 | | num = pls->presentation_timeoffset * pls->fragment_timescale / pls->fragment_duration; |
| | 1297 | num = pls->first_seq_no + (((get_current_time_in_sec() * pls->fragment_timescale)-pls->presentation_timeoffset) / pls->fragment_duration) - 120; |
| 1298 | 1298 | } else if (c->publish_time > 0 && !c->availability_start_time) { |
| 1299 | 1299 | num = pls->first_seq_no + (((c->publish_time - c->availability_start_time) - c->suggested_presentation_delay) * pls->fragment_timescale) / pls->fragment_duration; |
| 1300 | 1300 | } else { |