mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-10-31 02:27:11 -04:00 
			
		
		
		
	Add N/A note on packets_nbr > frames_nbr files
This commit is contained in:
		
							parent
							
								
									22dd3c65d2
								
							
						
					
					
						commit
						b49eb3bffa
					
				| @ -191,6 +191,8 @@ func getVideoKeyframes(path string, video_idx uint32, kf *Keyframe) error { | |||||||
| 		pts, flags := x[0], x[1] | 		pts, flags := x[0], x[1] | ||||||
| 
 | 
 | ||||||
| 		// true if there is no keyframes (e.g. in a file w/o video track) | 		// true if there is no keyframes (e.g. in a file w/o video track) | ||||||
|  | 		// can also happen if a video has more packets than frames (so the last packet | ||||||
|  | 		// is emtpy and has a N/A pts) | ||||||
| 		if pts == "N/A" { | 		if pts == "N/A" { | ||||||
| 			break | 			break | ||||||
| 		} | 		} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user