[FFmpeg-devel] [PATCH] avformat/asfdec: init avpacket by av_packet_alloc()

2022-01-10 Thread 13102179620
From: Yang Xiao This commit fixed a crash when seeking wma frames, asf decoder will try to demux in function asf_read_pts(). Pointer member side_data of AVPacket that allocated by stack may be wild pointer. Prevent releasing wild pointers in AVPacket when some functions try to call av_packet_u

[FFmpeg-devel] [PATCH] libavcodec/videotoolboxenc: fix pixel buffer memory leak

2021-11-09 Thread 13102179620
From: songyutong In function vtenc_populate_extradata(), there is a manually created pixel buffer that has not been released. So we should use CVPixelBufferRelease to release this pixel buffer at the end, otherwise will cause a memory leak. --- libavcodec/videotoolboxenc.c | 1 + 1 file changed,