hls muxer: fix black screen on iOS when there's no audio track (#816)

This commit is contained in:
aler9 2022-03-20 16:38:32 +01:00
parent 8cb2a7ffd4
commit 99f3215cfe
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ type muxerTSWriter struct {
}
func newMuxerTSWriter(
videoTrack gortsplib.Track,
audioTrack gortsplib.Track) *muxerTSWriter {
videoTrack *gortsplib.TrackH264,
audioTrack *gortsplib.TrackAAC) *muxerTSWriter {
w := &muxerTSWriter{}
w.innerMuxer = astits.NewMuxer(context.Background(), w)