Skip to content

Commit

Permalink
fix: hls ts segment does not start with key frame for a stream with a…
Browse files Browse the repository at this point in the history
…udio and video
  • Loading branch information
peipeiguo committed Jul 11, 2022
1 parent e835321 commit 76d7aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_hls.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ srs_error_t SrsHlsController::write_audio(SrsAudioFrame* frame, int64_t pts)
// @see https://github.com/ossrs/srs/issues/151
// we use absolutely overflow of segment to make jwplayer/ffplay happy
// @see https://github.com/ossrs/srs/issues/151#issuecomment-71155184
if (tsmc->audio && muxer->is_segment_absolutely_overflow()) {
if (muxer->pure_audio() && tsmc->audio && muxer->is_segment_absolutely_overflow()) {
if ((err = reap_segment()) != srs_success) {
return srs_error_wrap(err, "hls: reap segment");
}
Expand Down

0 comments on commit 76d7aef

Please sign in to comment.