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
		
	
	
	
	
	
| bf59c686c1bb739434109dadc04eeec6 *./tests/data/lavf/lavf.nut
 | |
| 319904 ./tests/data/lavf/lavf.nut
 | |
| ./tests/data/lavf/lavf.nut CRC=0x2a83e6b0
 |