avcodec/nvenc: extract sei data prep into own function