mirror of https://github.com/mpv-player/mpv
demux_timeline: don't use segments for DASH
Recent regression. Crashes because it sets the segmented flag, without actually setting the fields required for segmentation.
This commit is contained in:
parent
c2d4fd0ef4
commit
ae8b531207
|
@ -274,6 +274,7 @@ static int d_fill_buffer(struct demuxer *demuxer)
|
|||
goto drop;
|
||||
|
||||
if (!p->dash) {
|
||||
pkt->segmented = true;
|
||||
if (!pkt->codec)
|
||||
pkt->codec = demux_get_stream(seg->d, pkt->stream)->codec;
|
||||
if (pkt->start == MP_NOPTS_VALUE || pkt->start < seg->start)
|
||||
|
@ -305,7 +306,6 @@ static int d_fill_buffer(struct demuxer *demuxer)
|
|||
}
|
||||
}
|
||||
|
||||
pkt->segmented = true;
|
||||
demux_add_packet(vs->sh, pkt);
|
||||
return 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue