You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avformat/rtpenc_chain: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -89,7 +89,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s, | ||||
|  | ||||
|     if (ret) { | ||||
|         if (handle && rtpctx->pb) { | ||||
|             avio_close(rtpctx->pb); | ||||
|             avio_closep(&rtpctx->pb); | ||||
|         } else if (rtpctx->pb) { | ||||
|             uint8_t *ptr; | ||||
|             avio_close_dyn_buf(rtpctx->pb, &ptr); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user