You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Use new packet reading API, fixes a memory leak.
patch by Zdenek Kabelac, zdenek.kabelac gmail com Originally committed as revision 18728 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
				
					committed by
					
						 Diego Biurrun
						Diego Biurrun
					
				
			
			
				
	
			
			
			
						parent
						
							2e032b32df
						
					
				
				
					commit
					92147b6bec
				
			| @@ -107,11 +107,14 @@ int main(int argc, char **argv) | ||||
|             write(fd, pkt.data, pkt.size); | ||||
|             close(fd); | ||||
|         } | ||||
|         av_free_packet(&pkt); | ||||
|         pktnum++; | ||||
|         if (maxpkts && (pktnum >= maxpkts)) | ||||
|             break; | ||||
|     } | ||||
|  | ||||
|     av_close_input_file(fctx); | ||||
|  | ||||
|     while (donotquit) | ||||
|         sleep(60); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user