libff: Fix heap corruption caused by unnecessary av_dup_packet call
There's no need to duplicate the packet as the reference count will be 1 after the av_read_frame call. Duplicating causes heap corruption when a synthetic clock packet is duplicated and assigned the buffer from the stack-based temporary packet which is then double-freed by the decoder thread.
Showing
想要评论请 注册 或 登录