dashdec: Fix segfault on decoding segment timeline
authorBrendan McGrath <redmcg@redmandi.dyndns.org>
Mon, 29 Jan 2018 02:46:50 +0000 (10:46 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Mon, 29 Jan 2018 02:46:50 +0000 (10:46 +0800)
commit4e3e8980b58fc22eb41c0e3cd3392bb4e6ca0184
tree1c99b950f7893400e528d367fb202201fda9e744
parentfa8308d3d4f27d6fb38ac2069887a7b259f1c6ab
dashdec: Fix segfault on decoding segment timeline

If first_seq_no is not within the bounds of timelines then a segfault
will occur.
This patch removes the use of first_seq_no within the timelines array
It also adds first_seq_no to the value returned by calc_next_seg_no_from_timelines
(which allows for different values of 'startNumber')

Signed-off-by: Brendan McGrath <redmcg@redmandi.dyndns.org>
libavformat/dashdec.c