Skip to content

Commit

Permalink
avformat/hls: fix seek to start time error
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzhiqiang authored and raymond1012 committed Jan 3, 2018
1 parent 09ee574 commit 8504453
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libavformat/hls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1975,10 +1975,8 @@ static int hls_read_packet(AVFormatContext *s, AVPacket *pkt)
pkt_ts = AV_NOPTS_VALUE;


if (c->first_timestamp == AV_NOPTS_VALUE &&
pkt_ts != AV_NOPTS_VALUE)
c->first_timestamp = av_rescale_q(pkt_ts,
get_timebase(pls), AV_TIME_BASE_Q);
c->first_timestamp = s->start_time != AV_NOPTS_VALUE ? s->start_time : 0;

}

if (pls->seek_timestamp == AV_NOPTS_VALUE)
Expand Down

1 comment on commit 8504453

@peerless2012
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still not fixed.

Please sign in to comment.