avformat: replace all uses of av_copy_packet()