]> git.sesse.net Git - ffmpeg/commit
avformat/dashdec: Also fetch final partial segment
authorMatt Robinson <git@nerdoftheherd.com>
Mon, 5 Apr 2021 17:45:04 +0000 (18:45 +0100)
committerSteven Liu <liuqi05@kuaishou.com>
Wed, 14 Apr 2021 07:28:04 +0000 (15:28 +0800)
commitc5ca18fd1b1f8437e52305a5c15226b6f67a2e10
treebe9b1b344112fa07df82089ae5988bebac84fd97
parent4e39cd67b7275dc525684e54d0bd651ef4ee149b
avformat/dashdec: Also fetch final partial segment

Currently, the DASH demuxer omits the final segment for a non-live
stream (using SegmentTemplate) if it is shorter than the other segments.

Correct calc_max_seg_no to round up when calulating the number of
segments instead of rounding down to resolve this issue.

Signed-off-by: Matt Robinson <git@nerdoftheherd.com>
libavformat/dashdec.c