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:
wm4 2017-10-26 00:37:34 +02:00
parent c2d4fd0ef4
commit ae8b531207
1 changed files with 1 additions and 1 deletions

View File

@ -274,6 +274,7 @@ static int d_fill_buffer(struct demuxer *demuxer)
goto drop; goto drop;
if (!p->dash) { if (!p->dash) {
pkt->segmented = true;
if (!pkt->codec) if (!pkt->codec)
pkt->codec = demux_get_stream(seg->d, pkt->stream)->codec; pkt->codec = demux_get_stream(seg->d, pkt->stream)->codec;
if (pkt->start == MP_NOPTS_VALUE || pkt->start < seg->start) 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); demux_add_packet(vs->sh, pkt);
return 1; return 1;