You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avformat/apngdec: Don't free extradata manually
The extradata will be freed automatically when the corresponding stream gets freed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		
				
					committed by
					
						 Michael Niedermayer
						Michael Niedermayer
					
				
			
			
				
	
			
			
			
						parent
						
							2e328a8a38
						
					
				
				
					commit
					c1d300f83a
				
			| @@ -241,10 +241,6 @@ static int apng_read_header(AVFormatContext *s) | ||||
|     } | ||||
|  | ||||
| fail: | ||||
|     if (st->codecpar->extradata_size) { | ||||
|         av_freep(&st->codecpar->extradata); | ||||
|         st->codecpar->extradata_size = 0; | ||||
|     } | ||||
|     return ret; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user