File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ package org.mangui.hls.model {
7070 this . valid = true ;
7171 this . video_width = 0 ;
7272 this . video_height = 0 ;
73- this . starts_with_idr = false ;
73+ this . starts_with_idr = true ;
7474 this . pts_min_video_header = NaN ;
7575 };
7676
@@ -106,7 +106,9 @@ package org.mangui.hls.model {
106106 tags_pts_max_video = Math . max (tags_pts_max_video, tag. pts);
107107 pts_min_video = Math . min (pts_min_video, tag. pts);
108108 pts_max_video = Math . max (pts_max_video, tag. pts);
109- starts_with_idr = ! isNaN (pts_min_video_header) && pts_min_video_header <= tag. pts;
109+ if (isNaN (pts_min_video_header)) {
110+ starts_with_idr = false ;
111+ }
110112 break ;
111113 case FLVTag. DISCONTINUITY :
112114 case FLVTag. METADATA :
@@ -125,7 +127,7 @@ package org.mangui.hls.model {
125127 pts_min_audio = pts_min_video = dts_min = tags_pts_min_audio = tags_pts_min_video = Number . POSITIVE_INFINITY ;
126128 pts_max_audio = pts_max_video = tags_pts_max_audio = tags_pts_max_video = Number . NEGATIVE_INFINITY ;
127129 audio_found = video_found = tags_audio_found = tags_video_found = false ;
128- starts_with_idr = false ;
130+ starts_with_idr = true ;
129131 pts_min_video_header = NaN ;
130132 }
131133
You can’t perform that action at this time.
0 commit comments