Current code compares the desired recording time with InputStream.pts, which has a very unclear meaning. Change the code to use actual timestamps of the frames passed to the encoder. In several tests, one less frame is encoded, which is more correct. In the idroq test one more frame is encoded, which is again more correct. Behavior with stream copy should be unchanged.
		
			
				
	
	
		
			4 lines
		
	
	
		
			137 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			4 lines
		
	
	
		
			137 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
7e44a8ed5ff2fe5442f758d48fe1b496 *./tests/data/lavf/lavf.nut
 | 
						|
319680 ./tests/data/lavf/lavf.nut
 | 
						|
./tests/data/lavf/lavf.nut CRC=0xa79b84dd
 |