bebaeaeaa9
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.