mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-03 19:17:16 -05:00 
			
		
		
		
	Disable bitrate check to allow h265 to be transcoded to h264
This commit is contained in:
		
							parent
							
								
									22b68f4dc7
								
							
						
					
					
						commit
						12276ed034
					
				@ -87,7 +87,7 @@ func (fs *FileStream) GetMaster() string {
 | 
			
		||||
		}
 | 
			
		||||
		aspectRatio := float32(fs.Info.Video.Width) / float32(fs.Info.Video.Height)
 | 
			
		||||
		for _, quality := range Qualities {
 | 
			
		||||
			if quality.Height() < fs.Info.Video.Quality.Height() && quality.AverageBitrate() < fs.Info.Video.Bitrate {
 | 
			
		||||
			if quality.Height() < fs.Info.Video.Quality.Height() {
 | 
			
		||||
				master += "#EXT-X-STREAM-INF:"
 | 
			
		||||
				master += fmt.Sprintf("AVERAGE-BANDWIDTH=%d,", quality.AverageBitrate())
 | 
			
		||||
				master += fmt.Sprintf("BANDWIDTH=%d,", quality.MaxBitrate())
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user